/* ═══════════════════════════════════════════════════════════════
   SHAEDY.AUTH — TECHNICAL BRUTALISM (SHAEDY.DE MATCHING STYLE)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:        #020202;
  --surface:   #0A0A0A;
  --surface-2: #111111;
  --fg:        #E8E8E8;
  --muted:     #666666;
  --line:      rgba(255,255,255,0.05);
  --line-10:   rgba(255,255,255,0.10);
  --line-20:   rgba(255,255,255,0.20);
  --panel:         rgba(10,10,10,0.8);
  --panel-hover:   rgba(18,18,18,0.9);
  --neon-green:  #39FF14;
  --neon-blue:   #00D9FF;
  --neon-orange: #FF3D00;
  --accent:      #39FF14;
  --ok:          #39FF14;
  --danger:      #FF3D00;
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ═══════════ AUTH SCREEN ═══════════ */
.auth-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.auth-screen::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.auth-screen::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  animation: authPulse 8s ease-in-out infinite;
  box-shadow:
    0 0 0 100px transparent,
    0 0 0 200px rgba(255,255,255,0.02),
    0 0 0 300px rgba(255,255,255,0.01);
}
@keyframes authPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* ═══════════ LOGIN CARD ═══════════ */
.login-card {
  background: var(--surface);
  border: 1px solid var(--line-10);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: brutalFadeUp 0.6s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(15px);
}
@keyframes brutalFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  color: var(--muted);
}

.login-card h1 {
  margin: 0 0 12px 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.login-card .subtitle {
  margin: 0 0 32px 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-card .error-msg {
  font-size: 10px;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid rgba(255,61,0,0.2);
  background: rgba(255,61,0,0.05);
  display: none;
}
.login-card .error-msg.visible {
  display: block;
}

/* ═══════════ FORM ═══════════ */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 10px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-10);
  transition: all 0.2s var(--ease-out);
  border-radius: 0;
  height: 40px;
  letter-spacing: 0.03em;
}
.form-group input:focus {
  border-color: var(--neon-green);
  background: rgba(57,255,20,0.03);
  outline: none;
  box-shadow: 0 0 0 1px rgba(57,255,20,0.1);
}
.form-group input::placeholder {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ═══════════ BUTTONS ═══════════ */
button, .btn {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line-10);
  padding: 10px 20px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  width: 100%;
}
button:hover, .btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-primary {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover {
  background: #2be00f;
  border-color: #2be00f;
  color: #000;
}

.btn-steam {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  padding: 14px 20px;
  font-size: 11px; font-weight: 700;
  border: 1px solid var(--line-20);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  margin-top: 12px;
}
.btn-steam:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 8px;
}
.btn-ghost:hover {
  color: var(--fg);
  background: transparent;
  border-color: transparent;
}

/* ═══════════ DIVIDER ═══════════ */
.divider {
  display: flex; align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  border-top: 1px solid var(--line-10);
}
.divider::before { margin-right: 16px; }
.divider::after  { margin-left: 16px; }

/* ═══════════ LOADER ═══════════ */
.loader-dots {
  display: flex; gap: 8px;
  justify-content: center;
  padding: 20px 0;
}
.loader-dots span {
  width: 8px; height: 8px;
  background: var(--neon-green);
  border-radius: 0;
  animation: pulse 1.2s infinite ease-in-out both;
}
.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes pulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40%          { transform: scale(1.5); opacity: 1; }
}

/* ═══════════ DASHBOARD (logged in) ═══════════ */
.dashboard {
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.top-nav {
  height: 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}
.top-nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.top-nav .brand:hover { color: var(--neon-green); }

.top-nav .nav-user {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.top-nav .nav-user .user-name {
  color: var(--fg);
}
.top-nav .nav-user .admin-badge {
  font-size: 9px;
  color: #000;
  background: var(--neon-green);
  padding: 2px 8px;
  letter-spacing: 0.1em;
}

.main-content {
  flex: 1;
  padding: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line-10);
  padding: 40px;
  animation: brutalFadeUp 0.6s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(15px);
}
.profile-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.profile-card .user-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.profile-card .info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.profile-card .info-row:last-child { border-bottom: none; }
.profile-card .info-row .label { color: var(--muted); }
.profile-card .info-row .value { color: var(--fg); }

.status-ok { color: var(--ok); }
.status-missing { color: var(--danger); }

.profile-card .actions {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.profile-card .actions button {
  width: 100%;
}

/* ═══════════ LOGOUT ═══════════ */
.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,61,0,0.3);
  color: var(--danger);
  font-size: 10px;
}
.btn-logout:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #000;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .login-card { padding: 32px 24px; margin: 0 16px; }
  .main-content { padding: 32px 24px; }
  .profile-card { padding: 24px; }
}
