/* ==============================================================================
   AIDA EVALUATOR CLEARANCE AUTHENTICATION STYLES
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-card: rgba(13, 18, 28, 0.85);
  --border-accent: rgba(56, 189, 248, 0.25);
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* Background Grids & Orbs */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.2;
  pointer-events: none;
}

.orb-1 { top: -10%; left: 15%; background: var(--accent-cyan); }
.orb-2 { bottom: -10%; right: 15%; background: var(--accent-blue); }

.auth-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.15);
  text-align: center;
}

.shield-badge-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
  animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.badge-sovereign {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

.auth-form {
  text-align: left;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.auth-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.auth-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.auth-btn {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.45);
}

.quick-credentials-box {
  background: rgba(7, 9, 14, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.75rem;
  text-align: left;
  font-size: 0.8rem;
}

.quick-title {
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.cred-row code {
  color: var(--text-primary);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.autofill-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 6px;
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.autofill-btn:hover {
  background: rgba(6, 182, 212, 0.2);
}

.auth-footer {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
