/* Kirish sahifasi (Figma: 🔐 Kirish — Desktop 1440 / Mobile 390) */
.auth { display: flex; min-height: 100vh; background: var(--ink-bg); }

/* Chap brend paneli */
.auth-brand {
  position: relative; overflow: hidden; flex: 0 0 43%; max-width: 620px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 56px;
  background: var(--primary-800); color: var(--ink-white);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand__top { display: flex; align-items: center; justify-content: space-between; }
.auth-brand__lang { display: none; }
.auth-brand__headline { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.auth-brand__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1); color: var(--primary-100);
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .2px;
}
.auth-brand__hanzi { font-size: 14px; line-height: 20px; color: var(--gold-500); letter-spacing: 0; }
.auth-brand__title { max-width: 480px; font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -1px; }
.auth-brand__lead { max-width: 440px; font-size: 16px; line-height: 24px; color: var(--primary-200); }
.auth-brand__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.auth-brand__features li { display: flex; align-items: center; gap: 14px; }
.auth-brand__features b { display: block; font-size: 14px; line-height: 20px; }
.auth-brand__features small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--primary-200); }
.auth-brand__ficon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px;
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); color: var(--gold-500);
}
.auth-brand__watermark {
  position: absolute; z-index: 0; left: 20px; top: 300px; pointer-events: none; white-space: nowrap;
  font-family: var(--font-hanzi); font-weight: 700; font-size: 190px; line-height: 210px; opacity: .05;
}
.auth-brand__watermark--mobile { display: none; }
.auth-brand__stalk { position: absolute; z-index: 0; bottom: 0; pointer-events: none; }
.auth-brand__stalk--1 { left: 490px; height: 380px; width: auto; }
.auth-brand__stalk--2 { left: 540px; height: 540px; width: auto; }
.auth-brand__stalk--3 { left: 585px; height: 300px; width: auto; }

/* O'ng — forma */
.auth-form-side { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 32px 48px; }
.auth-form-side__lang { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.auth-form-side__center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.auth-form-side__footer { text-align: center; font-size: 12px; line-height: 16px; color: var(--ink-400); }

.auth-card {
  width: 100%; max-width: 502px; display: flex; flex-direction: column; gap: 18px; padding: 40px;
  background: var(--ink-white); border: 1px solid var(--ink-line); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}
.auth-card__head { display: flex; flex-direction: column; gap: 6px; }
.auth-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.role-switch .role-switch__tab { position: relative; display: flex; justify-content: center; }
.role-switch input { position: absolute; opacity: 0; pointer-events: none; }
.role-switch__tab:has(input:checked) {
  background: var(--ink-white); color: var(--ink-900); font-weight: 700;
  filter: drop-shadow(0 4px 8px rgba(18, 33, 26, 0.06));
}
.role-switch__tab:has(input:focus-visible) { outline: 2px solid var(--primary-500); outline-offset: 1px; }

.field__toggle { display: flex; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-400); }
.field__toggle:hover { color: var(--ink-700); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-700); }
.checkbox input { position: absolute; opacity: 0; }
.checkbox__box {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 6px; border: 1.5px solid var(--ink-300); color: transparent; background: var(--ink-white);
}
.checkbox input:checked + .checkbox__box { background: var(--primary-600); border-color: var(--primary-600); color: var(--ink-white); }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--primary-500); outline-offset: 2px; }

.link { font-weight: 700; color: var(--primary-600); }
.link:hover { color: var(--primary-700); }

.auth-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg);
  background: var(--red-100); color: var(--red-600); font-weight: 700;
}
.auth-note {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--radius-lg);
  background: var(--primary-50); color: var(--primary-600);
}
.auth-note p { font-size: 12px; line-height: 16px; color: var(--ink-700); }
.auth-note a { font-weight: 700; color: var(--primary-700); }

/* Planshet */
@media (max-width: 1180px) {
  .auth-brand { padding: 40px; }
  .auth-brand__stalk { display: none; }
}

/* Mobil */
@media (max-width: 860px) {
  .auth { flex-direction: column; }
  .auth-brand {
    flex: none; max-width: none; gap: 22px; padding: 28px 24px 36px;
    border-radius: 0 0 28px 28px;
  }
  .auth-brand__lang { display: block; }
  .auth-brand__lang .lang-switch { background: var(--ink-bg); }
  .auth-brand__headline { gap: 0; }
  .auth-brand__pill, .auth-brand__lead, .auth-brand__features, .auth-brand__watermark { display: none; }
  .auth-brand__title { font-size: 28px; line-height: 36px; letter-spacing: -.5px; }
  .auth-brand__watermark--mobile { display: block; left: 170px; top: 90px; font-size: 150px; line-height: 160px; opacity: .06; }

  .auth-form-side { padding: 28px 24px 24px; }
  .auth-form-side__lang { display: none; }
  .auth-form-side__center { padding: 0; align-items: flex-start; }
  .auth-card { max-width: none; padding: 0; border: 0; background: none; box-shadow: none; }
  .auth-form-side__footer { margin-top: 24px; }
}
