body.auth-page {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--auth-bg-gradient); font-family: var(--auth-font);
  color: var(--auth-text-body); padding: 24px; box-sizing: border-box;
}

.auth-wrapper {
  width: 100%; max-width: 480px; background: var(--auth-card-bg);
  backdrop-filter: blur(20px); border: 1px solid var(--auth-card-border);
  border-radius: var(--auth-radius); box-shadow: var(--auth-card-shadow);
  padding: 36px 32px; box-sizing: border-box; animation: fadeIn 0.4s ease;
}

.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-size: 24px; font-weight: 800;
  color: var(--auth-text-title); margin-bottom: 24px;
}
.auth-brand span { color: var(--auth-primary); }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--auth-input-bg);
  padding: 4px; border-radius: var(--auth-radius-sm); margin-bottom: 24px;
  border: 1px solid var(--auth-input-border);
}

.auth-tab {
  text-align: center; padding: 10px 14px; font-size: 14px; font-weight: 600;
  color: var(--auth-text-muted); border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: all 0.2s ease;
}
.auth-tab.active {
  background: #ffffff; color: var(--auth-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group { margin-bottom: 18px; text-align: left; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--auth-text-title); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--auth-input-border);
  border-radius: var(--auth-radius-sm); background: var(--auth-input-bg);
  font-family: inherit; font-size: 14px; box-sizing: border-box; transition: all 0.2s ease;
}
.form-input:focus {
  outline: none; border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 3px var(--auth-primary-glow); background: #ffffff;
}

.password-strength { height: 4px; background: var(--auth-input-border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.password-strength-bar { height: 100%; width: 0%; transition: width 0.3s ease, background-color 0.3s ease; }
.strength-weak { width: 33%; background: #ef4444; }
.strength-medium { width: 66%; background: #f59e0b; }
.strength-strong { width: 100%; background: #10b981; }

.auth-links { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.auth-link { color: var(--auth-primary); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-btn-primary {
  width: 100%; padding: 13px; background: var(--auth-primary); color: #ffffff;
  border: none; border-radius: var(--auth-radius-sm); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 14px var(--auth-primary-glow);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn-primary:hover { background: var(--auth-primary-hover); transform: translateY(-1px); }

.auth-divider {
  display: flex; align-items: center; text-align: center; margin: 24px 0;
  color: var(--auth-text-muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--auth-input-border); }
.auth-divider span { padding: 0 12px; }

.google-btn {
  width: 100%; padding: 12px; background: #ffffff; border: 1px solid var(--auth-input-border);
  border-radius: var(--auth-radius-sm); color: var(--auth-text-title); font-size: 14px;
  font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; text-decoration: none; transition: all 0.2s ease;
}
.google-btn:hover { background: #f8fafc; border-color: #cbd5e1; }

.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-digit {
  width: 48px; height: 56px; font-size: 24px; font-weight: 700; text-align: center;
  border: 2px solid var(--auth-input-border); border-radius: 12px; background: var(--auth-input-bg);
  transition: all 0.2s ease;
}
.otp-digit:focus { outline: none; border-color: var(--auth-primary); box-shadow: 0 0 0 3px var(--auth-primary-glow); background: #ffffff; }

.resend-timer { text-align: center; font-size: 13px; color: var(--auth-text-muted); margin-top: 16px; }
.resend-timer a { color: var(--auth-primary); font-weight: 600; text-decoration: none; cursor: pointer; }

.auth-alert { padding: 12px 14px; border-radius: var(--auth-radius-sm); font-size: 13px; margin-bottom: 20px; line-height: 1.4; }
.auth-alert-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Responsive Optimization */
@media (max-width: 480px) {
  body.auth-page { padding: 16px 12px; }
  .auth-wrapper { padding: 28px 16px; border-radius: 20px; }
  .auth-brand { font-size: 22px; margin-bottom: 20px; }
  .otp-boxes { gap: 6px; margin: 20px 0; }
  .otp-digit { width: 42px; height: 50px; font-size: 20px; border-radius: 10px; }
  .auth-btn-primary { padding: 12px; font-size: 14px; }
}
@media (max-width: 360px) {
  body.auth-page { padding: 12px 8px; }
  .auth-wrapper { padding: 24px 10px; }
  .otp-boxes { gap: 4px; margin: 16px 0; }
  .otp-digit { width: 38px; height: 46px; font-size: 18px; border-radius: 8px; }
}
