/* Ultra Auth Tool - Auth Pages Styles */
:root {
  --primary: #0E49A8;
  --secondary: #3898EC;
  --accent: #56C8F5;
  --bg: #FFFFFF;
  --bg-light: #F0F5FF;
  --card: #FFFFFF;
  --border: rgba(14,73,168,0.12);
  --text: #0F172A;
  --muted: #374151;
  --danger: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #F0F5FF 0%, #FFFFFF 50%, #E8F0FE 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}
#auth-stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.18;
}
.center-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 1; }
.auth-card {
  width: 460px; max-width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(14,73,168,0.12);
  border-radius: 20px; padding: 40px;
  box-shadow: 0 4px 24px rgba(14,73,168,0.10);
  position: relative;
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.auth-logo {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.auth-logo-inner {
  position: relative;
  display: inline-block;
  width: 100px; height: 100px;
  margin-bottom: 12px;
}
.auth-logo-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,73,168,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.auth-logo img {
  width: 100px; height: 100px;
  object-fit: contain;
  border-radius: 20px;
  position: relative; z-index: 1;
}
.auth-title { text-align: center; margin-bottom: 28px; }
.auth-title h1 {
  font-size: 24px; font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}
.auth-title p { font-size: 14px; color: #374151; margin-top: 4px; }
.alert {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
  color: #b91c1c; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px;
  font-size: 14px; text-align: center;
}
.alert-success {
  background: rgba(14,73,168,0.07); border: 1px solid rgba(14,73,168,0.25);
  color: #0E49A8;
}
.field { margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: #374151; display: block; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid rgba(14,73,168,0.18); background: #F8FAFF;
  color: #0F172A; font-size: 14px; transition: all .25s; outline: none;
  font-family: inherit;
}
.field input:focus, .field select:focus {
  border-color: #0E49A8;
  box-shadow: 0 0 0 3px rgba(14,73,168,0.10);
  background: #FFFFFF;
}
.field input::placeholder { color: #9CA3AF; }
.pass-wrap { position: relative; }
.toggle-pass {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 700; cursor: pointer; color: #0E49A8;
  transition: all .2s; letter-spacing: .5px; user-select: none;
}
.toggle-pass:hover { color: #3898EC; }
.btn-primary {
  width: 100%; padding: 13px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #0E49A8, #3898EC);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .25s; box-shadow: 0 4px 16px rgba(14,73,168,0.25);
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,73,168,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  width: 100%; padding: 12px; border-radius: 10px; border: 1.5px solid rgba(14,73,168,0.22);
  background: #F0F5FF; color: #0E49A8; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .25s; text-decoration: none; display: block;
  text-align: center; margin-top: 10px; font-family: inherit;
}
.btn-secondary:hover { background: #E0EAFF; border-color: #0E49A8; transform: translateY(-1px); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider hr { flex: 1; border: none; border-top: 1px solid rgba(14,73,168,0.12); }
.divider span { font-size: 12px; color: #9CA3AF; }
.links { text-align: center; margin-top: 20px; font-size: 13px; color: #374151; }
.links a { color: #0E49A8; text-decoration: none; font-weight: 600; transition: color .2s; }
.links a:hover { color: #3898EC; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .auth-card { padding: 28px 20px; } .field-row { grid-template-columns: 1fr; } }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite;
  display: inline-block; vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
