/* ==========================================================================
   auth/login.php — premium giriş səhifəsi
   Solda tünd şərab tonlu brend paneli (isti "mətbəx işığı" parıltıları),
   sağda ağ forma. Mobildə brend paneli yığcam başlığa çevrilir.
   ========================================================================== */

.lg-wrap {
  padding: 56px 20px 64px;
  background:
    radial-gradient(60% 60% at 10% 0%, rgba(244, 63, 94, .08), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(254, 205, 214, .45), transparent 70%),
    var(--color-bg-soft);
}

.lg-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 70px -34px rgba(120, 20, 45, .45), 0 2px 8px rgba(36, 20, 23, .04);
  animation: lgIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes lgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ BREND */
.lg-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fdeef1;
  background:
    radial-gradient(70% 55% at 0% 0%, rgba(244, 63, 94, .45), transparent 70%),
    radial-gradient(55% 45% at 100% 100%, rgba(242, 196, 109, .22), transparent 70%),
    linear-gradient(165deg, #3a1822 0%, #241417 60%, #1c0f13 100%);
}
/* Nazik naxış: boşqab halqaları */
.lg-brand::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -170px; bottom: -170px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px);
  z-index: -1;
}
.lg-brand-inner {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 44px 40px 40px;
}
.lg-brand-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.lg-brand-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff5b73; box-shadow: 0 0 0 4px rgba(255, 91, 115, .2); }

.lg-brand-title {
  margin: 22px 0 10px;
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.lg-brand-title em {
  font-style: normal;
  background: linear-gradient(90deg, #ff8a9a, #f2c46d);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lg-brand-text { margin: 0; color: #d9b7be; font-size: 14.5px; line-height: 1.6; max-width: 340px; }

.lg-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lg-points li { display: flex; align-items: flex-start; gap: 13px; }
.lg-point-ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #ffb3bf;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}
.lg-point-ico svg { width: 19px; height: 19px; }
.lg-points b { display: block; font-size: 14.5px; color: #fff; font-weight: 700; }
.lg-points small { display: block; margin-top: 1px; font-size: 12.5px; color: #c9a7ae; }

.lg-stats {
  margin-top: auto;
  padding-top: 30px;
  display: flex; gap: 28px;
}
.lg-stats div { display: flex; flex-direction: column; }
.lg-stats b { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.lg-stats span { margin-top: 5px; font-size: 12.5px; color: #c9a7ae; font-weight: 600; }

/* ------------------------------------------------------------------ FORMA */
.lg-form { display: flex; align-items: center; }
.lg-form-inner { width: 100%; padding: 44px 44px 36px; }

.lg-head { text-align: left; margin-bottom: 24px; }
.lg-head-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #fb5b6e, var(--color-primary-dark));
  box-shadow: 0 10px 22px -10px rgba(216, 31, 61, .75);
}
.lg-head-ico svg { width: 22px; height: 22px; }
.lg-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.lg-head p { margin: 6px 0 0; color: var(--color-ink-soft); font-size: 14.5px; }

.lg-google { border-radius: 14px; font-weight: 700; justify-content: center; }
.lg-form .auth-divider { margin: 18px 0; }

.lg-fields .form-group { margin-bottom: 16px; }
.lg-fields label { font-weight: 700; font-size: 13.5px; }

.lg-input { position: relative; }
.lg-input-ico {
  position: absolute;
  left: 14px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  color: var(--color-ink-faint);
  pointer-events: none;
  transition: color .15s ease;
}
.lg-input input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 44px !important;
  border-radius: 14px !important;
  background: var(--color-bg-soft);
  border: 1.5px solid var(--color-border) !important;
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lg-input input:hover { border-color: var(--color-border-strong) !important; }
.lg-input input:focus {
  background: #fff;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .12) !important;
  outline: none;
}
.lg-input:focus-within .lg-input-ico { color: var(--color-primary-dark); }

.lg-eye {
  position: absolute;
  right: 6px; top: 50%;
  width: 38px; height: 38px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--color-ink-faint);
  cursor: pointer;
}
.lg-eye:hover { color: var(--color-primary-dark); background: var(--color-primary-tint); }
.lg-eye svg { width: 19px; height: 19px; }
.lg-eye-off, .lg-eye.is-on .lg-eye-on { display: none; }
.lg-eye.is-on .lg-eye-off { display: block; }

.lg-caps {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 7px;
  font-size: 12.5px; font-weight: 700;
  color: var(--color-warning, #b45309);
}
.lg-caps[hidden] { display: none; }

.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; flex-wrap: wrap; }

.lg-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--color-ink-soft); }
.lg-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lg-check-box {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 2px solid var(--color-border-strong);
  background: #fff;
  transition: background .12s ease, border-color .12s ease;
}
.lg-check input:checked + .lg-check-box { background: var(--color-primary); border-color: var(--color-primary); }
.lg-check input:checked + .lg-check-box::after {
  content: ""; width: 5px; height: 10px; margin-top: -2px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.lg-check input:focus-visible + .lg-check-box { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.lg-link { font-size: 13.5px; font-weight: 700; color: var(--color-primary-dark); text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

.lg-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px;
  border-radius: 14px;
  font-size: 15.5px; font-weight: 800;
  background: linear-gradient(135deg, #fb5b6e, var(--color-primary-dark));
  border: 0;
  box-shadow: 0 14px 26px -12px rgba(216, 31, 61, .7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lg-submit svg { width: 18px; height: 18px; transition: transform .2s ease; }
.lg-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -12px rgba(216, 31, 61, .75); }
.lg-submit:hover svg { transform: translateX(3px); }
.lg-submit.is-loading { opacity: .75; cursor: progress; }
.lg-submit.is-loading svg { animation: lgNudge .8s ease-in-out infinite; }
@keyframes lgNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

.lg-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-border); text-align: center; }
.lg-foot a { font-weight: 800; color: var(--color-primary-dark); }

/* ------------------------------------------------------------------ MOBİL / PLANŞET */
@media (max-width: 860px) {
  .lg-wrap { padding: 28px 14px 40px; align-items: flex-start; }
  .lg-shell { grid-template-columns: 1fr; max-width: 520px; border-radius: 24px; }
  .lg-brand-inner { padding: 24px 22px 22px; }
  .lg-brand-title { margin: 14px 0 6px; font-size: 22px; }
  .lg-brand-text { font-size: 13.5px; }
  .lg-points, .lg-brand::before { display: none; }
  .lg-stats { margin-top: 16px; padding-top: 0; gap: 22px; }
  .lg-stats b { font-size: 21px; }
  .lg-form-inner { padding: 26px 22px 24px; }
  .lg-head-ico { display: none; }
  .lg-head h1 { font-size: 22px; }
}
@media (max-width: 380px) {
  .lg-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-shell, .lg-submit.is-loading svg { animation: none; }
  .lg-submit, .lg-submit svg { transition: none; }
}

/* ==========================================================================
   auth/register.php — qeydiyyat (giriş səhifəsinin üslubu ilə)
   ========================================================================== */
.rg-shell { max-width: 1060px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.rg-form-inner { padding-top: 38px; }

/* Sol panel: hesab növünə görə mətn */
.rg-copy { display: none; }
.rg-shell[data-role="chef"] .rg-copy--chef,
.rg-shell[data-role="employer"] .rg-copy--employer { display: block; animation: rgFade .35s ease both; }
@keyframes rgFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hesab növü kartları */
.rg-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rg-role { position: relative; margin: 0; cursor: pointer; }
.rg-role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rg-role-card {
  display: flex; align-items: center; gap: 11px;
  height: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-soft);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rg-role:hover .rg-role-card { border-color: var(--color-border-strong); }
.rg-role-emoji {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 21px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-border);
}
.rg-role-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rg-role-text b { font-size: 14.5px; color: var(--color-ink); }
.rg-role-text small { font-size: 12.5px; color: var(--color-ink-faint); font-weight: 500; }
.rg-role-dot {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  background: #fff;
  display: grid; place-items: center;
  transition: border-color .15s ease;
}
.rg-role input:checked + .rg-role-card {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .1), 0 10px 22px -16px rgba(216, 31, 61, .6);
}
.rg-role input:checked + .rg-role-card .rg-role-dot { border-color: var(--color-primary); }
.rg-role input:checked + .rg-role-card .rg-role-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); }
.rg-role input:focus-visible + .rg-role-card { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.lg-fields .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lg-fields .form-row > .form-group { min-width: 0; }

/* Seçim siyahıları (select) ikonla */
.lg-select select {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 44px !important;
  border-radius: 14px !important;
  background-color: var(--color-bg-soft);
  border: 1.5px solid var(--color-border) !important;
  font-size: 15px;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b7a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.lg-select select:focus {
  background-color: #fff;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .12) !important;
  outline: none;
}
.lg-select:focus-within .lg-input-ico { color: var(--color-primary-dark); }
.lg-input input[type="number"] { -moz-appearance: textfield; }
.lg-input input[type="number"]::-webkit-inner-spin-button,
.lg-input input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Parol gücü */
.rg-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.rg-meter i { height: 4px; border-radius: 999px; background: var(--color-border); transition: background .2s ease; }
.rg-meter[data-s="1"] i:nth-child(-n+1) { background: #ef4444; }
.rg-meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.rg-meter[data-s="3"] i:nth-child(-n+3) { background: #22c55e; }
.rg-meter[data-s="4"] i { background: #16a34a; }
.rg-meter-text { display: block; min-height: 16px; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--color-ink-faint); }
.rg-match { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; }
.rg-match[hidden] { display: none; }
.rg-match.is-ok { color: #16a34a; }
.rg-match.is-bad { color: var(--color-danger); }

.rg-shell .lg-google { margin-top: 2px; }

@media (max-width: 860px) {
  .rg-shell { grid-template-columns: 1fr; }
  .rg-copy .lg-points { display: none; }
}
@media (max-width: 560px) {
  .lg-fields .form-row { grid-template-columns: 1fr; }
  .rg-roles { gap: 8px; }
  .rg-role-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .rg-role-dot { position: absolute; top: 12px; right: 12px; }
}

/* ==========================================================================
   auth/forgot-password.php — parol bərpası
   ========================================================================== */
.fp-shell { max-width: 900px; }

.fp-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.fp-steps li { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 10px 0; opacity: .6; }
.fp-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px; top: 48px; bottom: -10px;
  width: 2px;
  background: rgba(255, 255, 255, .12);
}
.fp-steps li.is-now, .fp-steps li.is-done { opacity: 1; }
.fp-step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800; font-size: 14px;
  color: #ffb3bf;
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .16);
}
.fp-steps li.is-now .fp-step-num { color: #fff; background: linear-gradient(145deg, #fb5b6e, var(--color-primary-dark)); border-color: transparent; box-shadow: 0 0 0 5px rgba(244, 63, 94, .18); }
.fp-steps li.is-done .fp-step-num { color: #fff; background: #16a34a; border-color: transparent; }
.fp-steps b { display: block; font-size: 14.5px; color: #fff; font-weight: 700; margin-top: 2px; }
.fp-steps small { display: block; font-size: 12.5px; color: #c9a7ae; margin-top: 1px; }

/* Göndərildi vəziyyəti */
.fp-sent { text-align: center; }
.fp-sent-ico {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 24px;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  box-shadow: 0 0 0 8px rgba(244, 63, 94, .06);
  animation: fpPop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.fp-sent-ico > svg { width: 36px; height: 36px; }
.fp-sent-ico i {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #16a34a;
  border: 3px solid #fff;
}
.fp-sent-ico i svg { width: 14px; height: 14px; }
@keyframes fpPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.fp-sent h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.fp-sent > p { margin: 0 auto 20px; max-width: 360px; color: var(--color-ink-soft); font-size: 14.5px; line-height: 1.6; }

.fp-tips {
  list-style: none;
  margin: 0 0 22px; padding: 14px 16px;
  text-align: left;
  border-radius: 16px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 8px;
}
.fp-tips li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--color-ink-soft); line-height: 1.5; }
.fp-tips li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); }
.fp-tips b { color: var(--color-ink); }

.fp-resend { margin: 18px 0 0; font-size: 13.5px; color: var(--color-ink-soft); }
.fp-resend a { font-weight: 800; color: var(--color-primary-dark); }
.fp-resend a[hidden], .fp-resend span[hidden] { display: none; }
.fp-resend span { font-weight: 600; color: var(--color-ink-faint); }

@media (max-width: 860px) {
  .fp-steps { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fp-sent-ico { animation: none; } }

/* ==========================================================================
   Mobil daşma düzəlişi — bəzi brauzerlərdə (Safari, Samsung Internet) grid / flex
   elementləri öz məzmununun minimum enindən kiçilmir və forma ekrandan çıxırdı.
   ========================================================================== */
.lg-wrap { overflow-x: clip; }
.lg-shell { min-width: 0; }
.lg-shell > * { min-width: 0; }
.lg-form-inner, .lg-fields, .lg-fields .form-group, .lg-input { min-width: 0; max-width: 100%; }
.lg-input input, .lg-select select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.lg-google { white-space: normal; text-align: center; line-height: 1.3; min-height: 52px; height: auto; }
.lg-submit { white-space: normal; }
.rg-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-role, .rg-role-card, .rg-role-text { min-width: 0; }
.rg-role-text b, .rg-role-text small { overflow-wrap: anywhere; }
.lg-fields .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .lg-shell, .rg-shell, .fp-shell { grid-template-columns: minmax(0, 1fr); width: 100%; }
}
@media (max-width: 560px) {
  .lg-wrap { padding-left: 12px; padding-right: 12px; }
  .lg-fields .form-row { grid-template-columns: minmax(0, 1fr); }
  .lg-form-inner { padding: 22px 16px 20px; }
  .rg-role-card { padding: 12px 10px; }
  .rg-role-text b { font-size: 13.5px; }
  .rg-role-text small { font-size: 11.5px; }
}
.lg-google-short { display: none; }
@media (max-width: 400px) {
  .lg-google-long { display: none; }
  .lg-google-short { display: inline; }
}

/* ---- Düzəliş: tək sütunlu görünüşdə (planşet / kiçik noutbuk, böyüdülmüş ekran)
   qeydiyyat və bərpa kartı ekran boyu uzanmasın ---- */
@media (max-width: 860px) {
  .lg-shell.rg-shell, .lg-shell.fp-shell { max-width: 560px; margin-inline: auto; }
}

/* ---- Parol gücü göstəricisi: yalnız yazmağa başlayanda görünür, boş yer tutmur ---- */
.rg-meter:not([data-s]),
.rg-meter[data-s="0"] { display: none; }
.rg-meter-text { min-height: 0; }
.rg-meter-text:empty { display: none; }
/* Uzun qeydiyyat formasında sol paneldəki mətn ekranla birlikdə qalsın */
@media (min-width: 861px) {
  .rg-shell .lg-brand-inner { position: sticky; top: 24px; height: auto; }
}

/* Forma sahələri heç bir ekranda həddən artıq enə uzanmasın */
.lg-form-inner { max-width: 480px; margin-inline: auto; }
.rg-form-inner { max-width: 620px; }
