/* ═══════════════════════════════════════
   DuOSc — BOOT & LOGIN STYLES
   Classified Government Terminal Aesthetic
   ═══════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg-deep:      #06080f;
  --bg-base:      #0b0f1a;
  --bg-surface:   #0e1420;
  --bg-raised:    #111827;
  --bg-inset:     #080c14;

  --border-dim:   #1a2535;
  --border-mid:   #243347;
  --border-bright:#2d4a6b;

  --green:        #39d98a;
  --green-dim:    #1a6b45;
  --green-glow:   rgba(57,217,138,0.12);

  --amber:        #f59e0b;
  --amber-dim:    rgba(245,158,11,0.12);

  --red:          #ef4444;
  --red-dim:      rgba(239,68,68,0.12);

  --blue:         #3b82f6;
  --blue-dim:     rgba(59,130,246,0.12);

  --text-primary: #d1dce8;
  --text-secondary:#7a90a8;
  --text-dim:     #3d5068;
  --text-on-accent:#06080f;

  --font-display: 'Share Tech Mono', monospace;
  --font-mono:    'JetBrains Mono', monospace;
  --font-ui:      'IBM Plex Sans', sans-serif;
}

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

html, body {
  width: 100%; height: 100%;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════ BOOT SCREEN ═══════════ */
.boot-screen {
  position: fixed; inset: 0;
  background: #000;
  background-image: radial-gradient(ellipse at 50% 50%, rgba(57,217,138,0.025) 0%, transparent 70%);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 48px 72px;
  z-index: 9999;
}

.modern-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(57, 217, 138, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: modern-spin 1s linear infinite;
}

@keyframes modern-spin {
  to { transform: rotate(360deg); }
}

/* ── SKIP HINT ── */
.skip-hint {
  position: fixed; bottom: 24px; right: 36px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-dim);
  animation: blink-slow 3s infinite;
  display: flex; align-items: center; gap: 8px;
}

.skip-hint::before {
  content: 'ESC';
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--text-dim);
  border-radius: 3px;
  font-size: 9px;
  line-height: 1;
}

/* ═══════════ LOGIN SCREEN ═══════════ */
.login-screen {
  position: fixed; inset: 0;
  background-color: #121212;
  display: flex; align-items: center; justify-content: center;
  z-index: 9998;
  overflow: hidden;
}

/* Pre-blurred hardware-accelerated background image */
.login-screen::before {
  content: ''; position: absolute; inset: -30px;
  background-image: url('../assets/wallpaper.png');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: translateZ(0);
  will-change: transform;
  z-index: 0;
}

/* Dark overlay */
.login-screen::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.login-user-box {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  animation: fadeIn 0.5s ease;
}

.login-avatar {
  background: rgba(255,255,255,0.1);
  border-radius: 50%; padding: 16px; margin-bottom: 16px;
  border: 2px solid rgba(255,255,255,0.2);
}

.login-name {
  font-size: 20px; font-weight: 500; color: #fff;
  margin-bottom: 24px; font-family: var(--font-ui, 'Ubuntu', sans-serif);
}

.login-form {
  display: flex; gap: 8px;
}

.login-input {
  width: 200px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; padding: 0 12px;
  color: #fff; outline: none; font-family: var(--font-ui, 'Ubuntu', sans-serif);
  transition: all 0.2s;
}

.login-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: #39d98a;
  box-shadow: 0 0 0 2px rgba(57,217,138,0.2);
}

.login-btn {
  height: 36px; padding: 0 16px;
  background: #39d98a; color: #000;
  border: none; border-radius: 4px;
  font-weight: 500; cursor: pointer; transition: all 0.15s;
}

.login-btn:hover { background: #4af09c; }

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes blink-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-up { animation: slideUp 0.18s cubic-bezier(0.16,1,0.3,1) forwards; }

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 600px) {
  .boot-screen { padding: 20px 24px; }
  .boot-text { font-size: 10px; line-height: 1.8; }
  .login-container { width: 90%; }
  .login-title { font-size: 32px; letter-spacing: 6px; }
}
