@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #D31313;
  --primary-dark: #B01010;
  --primary-muted: rgba(211,19,19,0.18);
  --bg-body: #1A1A1A;
  --bg-card: #2F2F2F;
  --bg-input: #252525;
  --text-primary: #F5F5F5;
  --text-secondary: #AAAAAA;
  --text-muted: #777777;
  --border: rgba(255,255,255,0.09);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
  --transition: all 0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Inter', sans-serif;
  color: #F5F5F5;
  background: #1A1A1A;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(211,19,19,0.07), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(211,19,19,0.04), transparent 60%);
}

#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #1A1A1A;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}

@keyframes pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

.auth-container { position: relative; z-index: 1; width: 100%; max-width: 380px; animation: fadeIn 0.5s ease; }

.auth-box {
  background: #2F2F2F;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

.auth-logo-wrap { margin-bottom: 20px; }
.auth-logo { height: 64px; width: auto; object-fit: contain; }

.subtitle { color: #777777; font-size: 0.9rem; margin-bottom: 24px; }

.auth-box input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: #252525;
  color: #F5F5F5;
  font-size: 1rem; font-family: 'Inter', sans-serif;
  margin-bottom: 14px; outline: none;
  transition: all 0.2s ease;
}
.auth-box input:focus {
  border-color: #D31313;
  box-shadow: 0 0 0 3px rgba(211,19,19,0.18);
}
.auth-box input::placeholder { color: #777777; }

.auth-box button {
  width: 100%;
  padding: 14px;
  border: none; border-radius: 10px;
  background: #D31313;
  color: #fff;
  font-weight: 700; font-size: 1rem; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all 0.2s ease;
  letter-spacing: 0.03em;
}
.auth-box button:hover { background: #B01010; transform: translateY(-1px); }
.auth-box button:active { transform: none; }

.warning-box {
  margin-top: 20px; padding: 12px 14px;
  background: rgba(245,158,11,0.1);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem; color: #f2e8a0; text-align: left; line-height: 1.5;
}

.alt-option { margin-top: 16px; color: #777777; font-size: 0.85rem; }

@keyframes fadeIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
