/* ═══ Auth Page Layout ═══ */
.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: .04;
  top: -15%; right: -10%;
  filter: blur(80px);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: .03;
  bottom: -10%; left: -8%;
  filter: blur(60px);
  pointer-events: none;
}

/* ═══ Auth Card ═══ */
.auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), .06), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
  animation: scaleIn .4s ease both;
}
.auth-card--wide { max-width: 440px; }

.auth-brand {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-accent);
  transition: transform .3s ease;
}

.auth-brand:hover {
  transform: rotate(5deg) scale(1.05);
}
.auth-brand i { font-size: 1.5rem; color: #fff; }
.auth-brand--sm { width: 52px; height: 52px; }
.auth-brand--sm i { font-size: 1.4rem; }

/* ═══ Auth Inputs ═══ */
.auth-input {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-primary);
  padding: .7rem 1rem;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s, background .35s;
}
.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: var(--surface);
  color: var(--text-primary);
}
.auth-input::placeholder { color: var(--text-muted); }

.input-group-icon { position: relative; }
.input-group-icon .form-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .9rem;
  pointer-events: none;
  transition: color .2s;
}
.input-group-icon .auth-input { padding-left: 2.5rem; }
.input-group-icon .auth-input:focus ~ .form-icon,
.input-group-icon:focus-within .form-icon { color: var(--accent); }

/* ═══ Auth Divider ═══ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══ Auth Buttons ═══ */
.btn-yandex {
  background: #fc3f1d;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: .72rem 1.2rem;
  font-size: .92rem;
  transition: all .2s;
}
.btn-yandex:hover {
  background: #e0351a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252,63,29,.3);
}
.btn-login,
.btn-register {
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: .72rem 1.2rem;
  font-size: .92rem;
  transition: transform .15s, box-shadow .2s;
}
.btn-login:hover,
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

/* ═══ Auth Links ═══ */
.auth-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.auth-links a:hover { color: var(--accent); }
.auth-links a strong { color: var(--accent); }
.auth-link {
  color: var(--accent);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: opacity .2s;
}
.auth-link--small { font-size: .78rem; }
.auth-link:hover { opacity: .8; color: var(--accent); }

/* ═══ Password Strength ═══ */
.password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-top: .4rem;
  overflow: hidden;
}
.password-strength .bar {
  height: 100%;
  border-radius: 2px;
  transition: width .35s ease, background .35s ease;
  width: 0;
}
.pw-hint {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .25rem;
  transition: color .3s;
}

/* ═══ Auth Alerts ═══ */
.auth-alert {
  border-radius: var(--radius-md);
  border: none;
  padding: .55rem .85rem;
  font-size: .82rem;
}
.auth-alert.alert-success { background: var(--accent-light); color: var(--accent); }
.auth-alert.alert-danger { background: rgba(239,68,68,.1); color: #ef4444; }

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: 1rem;
}

.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2rem;
  padding: 0 .75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 94%, transparent);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .74rem;
  font-weight: 700;
}

.auth-benefits i {
  color: var(--accent);
}

/* ═══ Verify Email Page ═══ */
.verify-icon-success {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success-bg, rgba(34, 197, 94, 0.12));
  color: var(--success, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
}
.verify-icon-error {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--danger-bg, rgba(239, 68, 68, 0.1));
  color: var(--danger, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
}
.verify-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: .5rem;
}
.verify-message {
  color: var(--text-secondary);
  font-size: .9rem;
  text-align: center;
  line-height: 1.55;
  margin-bottom: .5rem;
}

