/* ═══════════════════════════════════════════════════════════════
   DevPlanner — auth.css
   Login & Register page styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Auth Page Layout ───────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Animated gradient orbs */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.auth-page::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}
.auth-page::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-direction: alternate-reverse;
  animation-delay: -3s;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

/* ─── Auth Card ──────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.08);
  padding: var(--sp-8);
  position: relative;
  z-index: 1;
  animation: authCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Auth Logo ──────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  text-align: center;
}

.auth-logo__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.auth-logo__mark {
  width: 28px;
  height: 28px;
}

.auth-logo__name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Auth Header ────────────────────────────────────────────── */
.auth-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ─── Auth Form ──────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Password toggle wrapper */
.password-wrap {
  position: relative;
}
.password-wrap .form-input {
  padding-right: 3rem;
}
.password-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}
.password-toggle:hover { color: var(--text-2); }

/* Submit button with loading state */
.auth-submit {
  margin-top: var(--sp-2);
  position: relative;
  overflow: hidden;
}
.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
}
.auth-submit:hover::after {
  animation: shimmer 0.8s ease;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ─── Auth Footer Link ───────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: 0.875rem;
  color: var(--text-3);
}
.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}
.auth-footer a:hover { color: var(--accent-hover); }

/* ─── Pending Notice ─────────────────────────────────────────── */
.pending-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
}
.pending-notice__icon { color: var(--warning); }
.pending-notice__title { font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.pending-notice__text  { font-size: 0.875rem; color: var(--text-2); }

/* ─── Register grid ──────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 480px) {
  .auth-card { padding: var(--sp-6); }
  .form-row  { grid-template-columns: 1fr; }
}
