html:has(body.auth-page-body) {
  background-color: #f1f5f9;
  --page-canvas: #f1f5f9;
  overscroll-behavior: none;
}

.auth-page-body {
  min-height: 100dvh;
  background-color: #f1f5f9;
  --page-canvas: #f1f5f9;
  display: flex;
  flex-direction: column;
}

.auth-page-body.has-site-nav main,
.auth-page-body.has-site-footer main {
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #f1f5f9;
}

.auth-page-body .auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.85rem, 3vw, 1.5rem);
  min-height: calc(100dvh - var(--nav-h) - 80px);
}

/* Split kart */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  width: 100%;
  max-width: 960px;
  min-height: min(580px, calc(100dvh - var(--nav-h) - 6rem));
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.auth-shell--register .auth-shell__form {
  order: 2;
  border-left: none;
  border-right: 1px solid #e2e8f0;
}

.auth-shell--register .auth-shell__promo {
  order: 1;
}

.auth-shell--login .auth-shell__form {
  border-right: 1px solid #e2e8f0;
}

.auth-shell__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 2.75rem);
  overflow-y: auto;
  background: #fff;
  min-width: 0;
}

.auth-form {
  width: 100%;
}

.auth-form-head {
  margin-bottom: 1.5rem;
}

.auth-form-head h1 {
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: #0f172a;
}

.auth-form-head p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
}

/* Promo panel */
.auth-shell__promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(165deg, #0d9488 0%, #0f766e 42%, #115e59 100%);
  color: #fff;
  overflow: hidden;
  min-width: 0;
}

.auth-shell__promo::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.auth-shell__promo::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -70px;
  left: -50px;
  pointer-events: none;
}

.auth-shell__promo-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 20rem;
}

.auth-shell__promo-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  line-height: 1;
}

.auth-shell__promo-title {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.auth-shell__promo-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.88);
}

.auth-shell__promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 16rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-shell__promo-btn--primary {
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: transparent;
  color: #fff;
}

.auth-shell__promo-btn--primary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.auth-shell__promo-btn svg {
  stroke: #fff;
  flex-shrink: 0;
}

.auth-promo-roles-label {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.auth-promo-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.auth-promo-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 100%;
  padding: 0.85rem 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.auth-promo-role:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.auth-promo-role__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-promo-role__icon svg {
  stroke: #fff;
  width: 20px;
  height: 20px;
}

.auth-promo-role__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.auth-promo-role__text strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-promo-role__text small {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

/* Form */
.auth-page-body .form-group {
  margin-bottom: 1.05rem;
}

.auth-page-body .form-label {
  font-size: 0.84rem;
  margin-bottom: 0.38rem;
  font-weight: 600;
  color: #334155;
}

.auth-page-body .form-control {
  padding: 0.72rem 0.95rem;
  font-size: 0.94rem;
  border-radius: 11px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
}

.auth-page-body .form-control::placeholder {
  color: #94a3b8;
}

.auth-page-body .form-control:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
  outline: none;
}

.auth-page-body .input-icon {
  position: relative;
}

.auth-page-body .input-icon svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.auth-page-body .input-icon .form-control {
  padding-left: 2.85rem;
}

.auth-page-body .input-icon--password .form-control {
  padding-right: 2.85rem;
}

.phone-readonly__value {
  display: flex;
  align-items: center;
  min-height: calc(1.5em + 1rem + 2px);
  background: var(--slate-100, #f1f5f9);
  color: var(--slate-700, #334155);
  cursor: default;
  user-select: none;
}

.input-icon__toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
}

.input-icon__toggle:hover {
  color: #475569;
  background: #f8fafc;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.38rem;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.link-teal.link-sm {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0d9488;
  text-decoration: none;
}

.link-teal.link-sm:hover {
  color: #115e59;
  text-decoration: underline;
}

.btn-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.82rem 1.25rem;
  border: none;
  border-radius: 11px;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28);
}

.btn-auth-submit:hover {
  color: #fff;
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
}

.btn-auth-submit svg {
  stroke: #fff;
}

.auth-flash {
  margin-top: 0.85rem;
  padding: 0.72rem 0.9rem;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

.auth-flash--err {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.auth-flash--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-page-body .form-check {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0.65rem 0 0.75rem;
}

.auth-page-body .form-row {
  gap: 0.65rem;
}

.auth-page-body .password-meter {
  margin-top: 0.35rem;
}

/* Kayıt türü sekmeleri — danışan + psikolog (2 sütun) */
.register-type-nav--auth {
  margin-bottom: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-type-nav--auth .register-type-nav__item {
  flex-direction: row;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.65rem;
  font-size: 0.8rem;
}

.register-type-nav--auth .register-type-nav__item.active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.auth-steps {
  margin-bottom: 0.85rem;
  gap: 0.35rem;
}

.auth-step {
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  gap: 0.35rem;
}

.auth-step span {
  width: 18px;
  height: 18px;
  font-size: 0.62rem;
}

.auth-diploma {
  margin: 1.25rem 0 1rem;
  padding: 1.15rem 1.1rem 0.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.auth-diploma__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.auth-diploma__sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.form-control--file {
  padding: 0.55rem 0.75rem;
  background: #fff;
  cursor: pointer;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
}

.auth-info-box {
  padding: 0.65rem 0.8rem;
  margin: 0.65rem 0;
  font-size: 0.78rem;
  gap: 0.65rem;
}

.auth-perks {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.76rem;
  color: #475569;
}

.auth-perks div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-perks svg {
  color: #0d9488;
  flex-shrink: 0;
}

.auth-links {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  text-align: center;
}

.auth-mobile-switch {
  display: none;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.84rem;
  color: #64748b;
  text-align: center;
}

.auth-mobile-switch a {
  font-weight: 700;
  color: #0d9488;
  text-decoration: none;
  margin-left: 0.25rem;
}

.auth-mobile-switch a:hover {
  text-decoration: underline;
}

.auth-page-body .site-footer {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .auth-page-body .auth-wrap {
    padding: 0.75rem 0.65rem 1.25rem;
    min-height: auto;
    align-items: flex-start;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 16px;
  }

  .auth-shell__form {
    padding: 1.5rem 1.2rem 1.35rem;
    order: 1 !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0;
    justify-content: flex-start;
  }

  .auth-shell__promo {
    order: 2 !important;
    padding: 1.35rem 1.2rem 1.5rem;
  }

  .auth-shell__promo-inner {
    max-width: 100%;
  }

  .auth-shell__promo-desc {
    margin-bottom: 1.1rem;
  }

  .auth-shell__promo-btn {
    max-width: 100%;
  }

  .auth-promo-roles {
    max-width: 22rem;
    margin: 0 auto;
  }

  .register-type-nav__item {
    padding: 0.48rem 0.25rem;
    font-size: clamp(0.64rem, 2.5vw, 0.72rem);
  }

  .auth-steps {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .auth-page-body .form-control {
    font-size: 16px;
  }

  .auth-mobile-switch {
    display: block;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .auth-shell {
    max-width: 720px;
  }
}
