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

:root {
  --bg-base:      #0a0e1a;
  --bg-card:      #151e2d;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.15);
  --blue:         #3b82f6;
  --blue-glow:    rgba(59,130,246,0.4);
  --purple:       #8b5cf6;
  --red:          #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:   #475569;
  --font: 'Inter', system-ui, sans-serif;
  --radius-lg:    16px;
  --radius-xl:    24px;
}

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

/* Background Effects */
body::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 60%);
  top: -200px; left: -200px;
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  z-index: 10;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-card {
  background: rgba(21, 30, 45, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 8px 24px var(--blue-glow);
}
.logo-icon svg { width: 30px; height: 30px; }

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}
.brand-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 1rem;
  width: 18px; height: 18px;
  color: var(--text-muted);
}

.input-field {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  background: rgba(10, 14, 26, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
}
.input-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: rgba(10, 14, 26, 0.8);
}
.input-field:focus + .input-icon {
  color: var(--blue);
}

.btn-login {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 15px var(--blue-glow);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--blue-glow);
}
.btn-login svg {
  width: 18px; height: 18px;
  transition: transform 0.2s;
}
.btn-login:hover svg {
  transform: translateX(4px);
}
.btn-login.loading {
  opacity: 0.7; pointer-events: none;
}

.error-message {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 1rem;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
