.auth-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
}

.auth-card {
  background: var(--bg2);
  border: 1.5px solid var(--ln);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo .logo-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--tx);
  letter-spacing: -0.3px;
}

.auth-logo .logo-text em {
  color: var(--ac);
  font-style: normal;
}

.auth-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--tx);
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--tx2);
  margin-bottom: 24px;
}

.auth-perks {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tx2);
  font-weight: 500;
}

.perk-check {
  color: var(--ac);
  font-weight: 800;
  font-size: 14px;
}

.auth-error {
  background: var(--danger-lite);
  border: 1px solid rgba(220,38,38,0.2);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.auth-success {
  background: var(--success-lite);
  border: 1px solid rgba(22,163,74,0.2);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-password-wrap {
  position: relative;
}

.input-password-wrap .input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tx3);
  padding: 4px;
  display: flex;
  align-items: center;
}

.password-toggle:hover { color: var(--tx2); }

.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--ln);
  border-radius: 2px;
  overflow: hidden;
}

#strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

#strength-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tx3);
  min-width: 40px;
}

.auth-terms {
  font-size: 12px;
  color: var(--tx3);
  text-align: center;
  line-height: 1.6;
}

.auth-terms a {
  color: var(--tx2);
  font-weight: 600;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--tx3);
  font-size: 12px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ln);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
  background: var(--bg2);
  border: 1.5px solid var(--ln);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-google:hover {
  background: var(--bg);
  border-color: var(--tx3);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--tx2);
  margin-top: 20px;
}

.auth-switch a {
  color: var(--ac);
  font-weight: 700;
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}
