/* ============================================================== *
 * ADNSU Karyera — giriş və qeydiyyat ekranı (peşəkar görünüş)
 * styles.css-dəki əsas auth qaydalarının üstündən yüklənir.
 * ============================================================== */

/* Kart */
.auth-card {
  width: min(440px, 100%);
  padding: 30px 32px 26px;
  border-radius: 20px;
  box-shadow: var(--shadow-2);
}
.auth-card-wide { width: min(620px, 100%); }

.auth-tabs { margin-bottom: 24px; padding: 4px; border-radius: 12px; }
.auth-tabs button { padding: 10px; font-size: 13.5px; font-weight: 700; border-radius: 9px; }

/* Forma və başlıq */
.auth-form { display: grid; gap: 16px; }
.auth-form-head { display: grid; gap: 6px; margin-bottom: 2px; }
.auth-h { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.auth-h:focus { outline: none; }
.auth-sub { font-size: 13.5px; line-height: 1.55; margin: 0; color: var(--muted); }
.auth-eyebrow {
  font: 600 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
}

/* Sahələr */
.auth-form .field { gap: 6px; }
.auth-form .field > label,
.auth-form .field-label,
.auth-form .field-row > label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-row .linkbtn { font-size: 12px; font-weight: 600; }
.auth-form input:not([type="checkbox"]):not([type="radio"]),
.auth-form select {
  min-height: 44px; padding: 10px 12px; font-size: 14px; border-radius: 10px;
}
.auth-form select {
  padding-right: 34px;
  background-position: calc(100% - 18px) calc(50% - 1px), calc(100% - 13px) calc(50% - 1px);
}
.auth-form textarea { font-size: 14px; padding: 10px 12px; border-radius: 10px; min-height: 92px; }
.auth-form .help { font-size: 11.5px; line-height: 1.45; }
.auth-form .pw-wrap input { width: 100%; padding-right: 46px; }
.auth-form .pw-toggle { right: 6px; }

.req { color: var(--bad); font-weight: 700; }
.auth-form [aria-invalid="true"],
.auth-form [aria-invalid="true"]:hover {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px var(--bad-soft);
}
.field-error {
  display: flex; gap: 7px; align-items: flex-start;
  color: var(--bad); font-size: 12px; font-weight: 600; line-height: 1.4;
}
.field-error::before {
  content: "!"; flex: none; width: 15px; height: 15px; margin-top: 1px;
  border-radius: 50%; background: var(--bad); color: #fff;
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}

/* Düymələr */
.auth-form .btn {
  min-height: 46px; border-radius: 12px; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.auth-form .btn.block { display: flex; }
.auth-submit { box-shadow: 0 10px 20px -12px var(--brand); }
.auth-ghost svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.auth-spin {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-spin { animation-duration: 1.8s; } }

/* Google / Microsoft */
.auth-sso { display: grid; gap: 10px; }
.btn-sso { min-height: 46px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.btn-sso svg { width: 18px; height: 18px; }
.auth-or { margin: 0; font-size: 11.5px; }

.auth-switch {
  margin: 2px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 13px;
}
.auth-switch .linkbtn { font-weight: 700; }

.auth-trust {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 0; color: var(--muted); font-size: 11.5px;
}
.auth-trust svg { width: 14px; height: 14px; flex: none; }

/* Hesab növü seçimi */
.registration-choice .account-choice-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.registration-choice .account-choice-grid > button {
  min-height: 0; flex-direction: row; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
}
.registration-choice .account-choice-grid > button:hover { transform: none; }
.account-choice-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.account-choice-body small { font-size: 12.5px; }
.registration-choice .account-choice-grid em {
  margin: 0; font-size: 18px; color: var(--muted); transition: transform .16s, color .16s;
}
.registration-choice .account-choice-grid > button:hover em { transform: translateX(3px); color: var(--brand); }
.registration-choice .account-choice-icon { flex: none; width: 46px; height: 46px; }

/* Addım göstəricisi */
.auth-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.auth-steps li > span,
.auth-steps li > button {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 0 0; border: 0; border-top: 3px solid var(--line); border-radius: 0;
  background: none; color: var(--muted); font: inherit; text-align: left;
}
.auth-steps li.current > span { border-top-color: var(--brand); color: var(--ink); }
.auth-steps li.done > button { border-top-color: var(--brand); color: var(--ink-2); cursor: pointer; }
.auth-steps li.done > button:hover .auth-step-t { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.auth-steps li.done > button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.auth-step-n {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  font: 700 11px var(--font-mono); background: var(--surface-2); color: var(--muted);
}
.auth-steps li.current .auth-step-n { background: var(--brand); color: var(--on-brand); }
.auth-steps li.done .auth-step-n { background: var(--good-soft); color: var(--good); }
.auth-step-n svg { width: 12px; height: 12px; }
.auth-step-t { font-size: 12px; font-weight: 700; line-height: 1.3; min-width: 0; }

/* Addım məzmunu */
.auth-pane { display: grid; gap: 16px; min-width: 0; }
.auth-pane[hidden] { display: none; }
.auth-pane .grid.c2 { gap: 14px; }
.auth-legend { margin: -4px 0 0; font-size: 11.5px; color: var(--muted); }
.auth-step-nav { display: flex; gap: 10px; }
.auth-step-nav .auth-ghost { flex: none; padding-inline: 16px; }
.auth-step-nav .auth-submit { flex: 1; }

/* Status seçimi (Bakalavr / Magistr / Məzun) */
.seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  padding: 4px; background: var(--surface-2); border-radius: 12px;
}
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 38px; border-radius: 9px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.auth-tip {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 12px;
  background: var(--brand-soft); color: var(--ink-2); font-size: 12.5px; line-height: 1.5;
}
.auth-tip svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.auth-terms { gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.auth-terms input { width: 18px; height: 18px; }
.auth-terms span { font-weight: 500; }

/* Planşet və telefon: brend panelin dekor dairəsi (::after) sağa 120px çıxıb
   səhifəni yan-yana sürüşdürürdü — panel onu öz daxilində kəsir. */
@media (max-width: 860px) {
  .auth-brand { position: relative; overflow: hidden; }
}

/* Telefon */
@media (max-width: 620px) {
  .auth-panel { padding: 16px 12px 40px; }
  .auth-card { padding: 22px 18px 20px; border-radius: 18px; }
  .auth-tabs { margin-bottom: 20px; }
  .auth-h { font-size: 20px; }
  .auth-facts { display: none; }
  /* iOS 16px-dən kiçik şriftdə sahəyə toxunanda ekranı böyüdür */
  .auth-form input:not([type="checkbox"]):not([type="radio"]),
  .auth-form select,
  .auth-form textarea { font-size: 16px; }
  .auth-steps li:not(.current) .auth-step-t { display: none; }
  .registration-choice .account-choice-grid > button { min-height: 0; padding: 14px; }
}
