/* ═══════════════════════════════════════════════════════════════════════════
   PanelOps — Auth experience v11 · Aurora canvas, glass card, motion
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px; padding: 24px;
  background: var(--bg-canvas); position: relative; overflow: hidden;
}

/* Animated aurora backdrop */
.auth-aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-aurora .orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: po-float 12s ease-in-out infinite;
}
.auth-aurora .orb-1 { width: 520px; height: 520px; top: -18%; left: -8%; background: rgba(79, 70, 229, 0.35); }
.auth-aurora .orb-2 { width: 460px; height: 460px; bottom: -22%; right: -6%; background: rgba(6, 182, 212, 0.28); animation-delay: -4s; }
.auth-aurora .orb-3 { width: 340px; height: 340px; top: 42%; left: 58%; background: rgba(139, 92, 246, 0.22); animation-delay: -8s; }
[data-theme="light"] .auth-aurora .orb { opacity: .32; filter: blur(100px); }
.auth-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
}
.auth-noise { position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.auth-card {
  width: 100%; max-width: 430px;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-lg);
  padding: 38px 36px 32px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-lg);
  animation: po-fade-in-up .55s var(--ease-out) both;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.9), rgba(34,211,238,.7), transparent);
}
.auth-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--gradient-surface);
}
.auth-card > * { position: relative; }

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 58px; margin-bottom: 16px; filter: drop-shadow(0 0 24px rgba(99, 102, 241, 0.35)); animation: po-float 6s ease-in-out infinite; }
.auth-logo h1 { font-size: 1.42rem; font-weight: 800; color: var(--text-white); margin-bottom: 5px; letter-spacing: -0.03em; }
.auth-logo h1 span { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-logo p { font-size: .86rem; color: var(--text-secondary); }
.auth-logo .auth-shield { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }

.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-group label { display: block; font-size: .74rem; font-weight: 650; color: var(--text-secondary); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .07em; }
.auth-card .form-control {
  width: 100%; padding: 12px 14px; background: var(--bg-dark);
  border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: inherit; font-size: .9rem; outline: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
[data-theme="light"] .auth-card .form-control { background: rgba(255,255,255,.75); }
.auth-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.auth-card .form-control::placeholder { color: var(--text-muted); }
.auth-card .input-icon-wrapper { position: relative; }
.auth-card .input-icon-wrapper > i, .auth-card .input-icon-wrapper > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 16px; height: 16px; pointer-events: none; transition: color .2s ease; z-index: 2; }
.auth-card .input-icon-wrapper:focus-within > i { color: var(--primary); }
.auth-card .input-icon-wrapper .form-control { padding-left: 42px; }

.auth-btn {
  width: 100%; padding: 13px; background: var(--gradient-primary); background-size: 170% 170%;
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: .93rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.65);
  transition: transform .2s var(--ease-spring), box-shadow .2s ease, background-position .5s ease, filter .2s ease;
  margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none;
  position: relative; overflow: hidden;
}
.auth-btn::before { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); transition: left .6s var(--ease-out); }
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(79, 70, 229, 0.75); background-position: 100% 50%; color: #fff; text-decoration: none; }
.auth-btn:hover::before { left: 130%; }
.auth-btn:active { transform: translateY(0) scale(.985); }
.auth-btn:disabled { opacity: .6; pointer-events: none; }

.github-btn {
  background: var(--surface-light) !important; color: var(--text-primary) !important;
  border: 1px solid var(--surface-border-strong) !important; box-shadow: none !important; font-weight: 600;
}
.github-btn:hover { border-color: var(--text-muted) !important; background: var(--surface-lighter) !important; color: var(--text-white) !important; }
.github-btn svg { width: 18px; height: 18px; }

.auth-divider { display: flex; align-items: center; gap: 16px; margin: 22px 0; color: var(--text-muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--surface-border-strong), transparent); }

.auth-footer { text-align: center; margin-top: 22px; font-size: .84rem; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 650; }
.auth-footer a:hover { color: var(--accent); text-decoration: underline; }

.auth-trust { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--text-muted); font-size: .7rem; z-index: 1; position: relative; flex-wrap: wrap; }
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.auth-trust i { width: 12px; height: 12px; color: var(--success); }

.auth-alerts { width: 100%; max-width: 430px; position: relative; z-index: 2; }
.auth-alerts .alert { animation: po-fade-in-up .4s var(--ease-out) both; }

/* 2FA input */
.otp-input { letter-spacing: .55rem !important; font-size: 1.7rem !important; font-weight: 700; text-align: center; font-family: var(--font-mono); }

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px 24px; }
  .auth-logo img { height: 48px; }
}
