.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
  background: #f7f9fc;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 48px clamp(30px, 6vw, 90px);
  overflow: hidden;
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #1e3a8a, #2563eb 48%, #0f766e);
}

.auth-brand-panel::after {
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  content: "";
  background: rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.auth-brand-panel .brand { color: #fff; }
.auth-copy { position: relative; z-index: 1; max-width: 520px; }
.auth-copy h1 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 72px); line-height: 1.1; }
.auth-copy p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.auth-note { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.72); font-size: 13px; }

.auth-form-panel {
  display: grid;
  padding: 40px 24px;
  place-items: center;
}

.auth-card {
  width: min(470px, 100%);
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-card h2 { margin: 0 0 5px; font-size: 30px; }
.auth-subtitle { margin: 0 0 25px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 24px; padding: 5px; background: var(--soft); border-radius: 12px; }
.auth-tab { height: 40px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-weight: 700; }
.auth-tab.active { color: var(--primary); background: #fff; box-shadow: 0 3px 10px rgba(40, 55, 82, 0.08); }
.auth-form { display: grid; gap: 15px; }
.auth-form[hidden] { display: none; }
.auth-submit { width: 100%; margin-top: 5px; }
.back-home { display: inline-flex; margin-top: 20px; color: var(--primary); font-size: 14px; }
.email-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; }
.email-code-button { min-height: 42px; padding: 0 12px; white-space: nowrap; font-size: 13px; }
.email-code-button:disabled { cursor: not-allowed; opacity: 0.65; }
.email-code-status { display: block; min-height: 18px; margin-top: 6px; color: var(--muted); font-size: 12px; }

@media (max-width: 850px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 280px; padding: 30px 24px; }
  .auth-note { display: none; }
}

@media (max-width: 520px) {
  .auth-form-panel { padding: 20px 12px; }
  .auth-card { padding: 25px 20px; border-radius: 18px; }
  .email-code-row { grid-template-columns: minmax(0, 1fr) 118px; }
  .email-code-button { padding-inline: 8px; }
}
