/* ═══════════════════════════════════════════
   auth.css — qabinet.ru
   Стили страницы авторизации/регистрации
═══════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Левая панель — брендинг ── */
.auth-left {
  background: linear-gradient(145deg, var(--primary) 0%, var(--coral) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .2;
  pointer-events: none;
}
.auth-logo { font-size: 22px; font-weight: 700; color: #fff; position: relative; z-index: 2; }
.auth-logo span { color: rgba(255,255,255,.65); }
.auth-left-content { position: relative; z-index: 2; }
.auth-left-title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.auth-left-sub { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 36px; }
.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }
.auth-feature-check {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-feature-check svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.5; }
.auth-footer { font-size: 12px; color: rgba(255,255,255,.45); position: relative; z-index: 2; }

/* ── Правая панель — форма ── */
.auth-right {
  background: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-wrap { max-width: 380px; width: 100%; margin: 0 auto; }

/* ── Табы ── */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  font-family: var(--font);
}
.auth-tab.active {
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

/* ── Заголовок формы ── */
.form-title { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 6px; letter-spacing: -.3px; }
.form-sub   { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }

/* ── Forgot ── */
.forgot {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  display: block;
  text-align: right;
  margin-top: -8px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.forgot:hover { opacity: .75; }

/* ── Magic box ── */
.magic-box {
  background: #f8f9fc;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 4px;
}
.magic-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.magic-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.magic-icon svg { width: 15px; height: 15px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.magic-title { font-size: 14px; font-weight: 600; color: var(--dark); }
.magic-desc  { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

/* ── Подпись ── */
.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
  line-height: 1.6;
}
.form-note a { color: var(--primary); font-weight: 500; cursor: pointer; }
.form-note a:hover { text-decoration: underline; }

/* ── Состояние успеха ── */
.auth-success { display: none; text-align: center; padding: 20px 0; }
.auth-success.show { display: block; }
.success-icon {
  width: 60px; height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.success-icon svg { width: 30px; height: 30px; fill: none; stroke-width: 2; }
.si-purple { background: var(--primary-lt); } .si-purple svg { stroke: var(--primary); }
.si-coral  { background: var(--coral-lt);   } .si-coral  svg { stroke: var(--coral); }
.success-title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.success-desc  { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

/* ── Адаптив ── */
@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .auth-right { padding: 32px 24px; }
}

/* ═══════════════════════════════════════════
   АДАПТИВ auth.css (дополнение)
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* auth-left уже скрыт в существующем breakpoint */
  .auth-right { padding: 28px 20px; justify-content: flex-start; padding-top: 40px; }
  .auth-form-wrap { max-width: 100%; }
  .form-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .auth-right { padding: 24px 16px; }
  .auth-tabs { margin-bottom: 24px; }
  .form-title { font-size: 20px; }
  .field-input { font-size: 16px; } /* prevent iOS zoom */
  .magic-box { padding: 14px; }
}
