:root {
  --bg: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(15, 42, 107, 0.12), transparent 35%),
        linear-gradient(135deg, #0f172a 0%, #0b255e 50%, #0f4f8f 100%);
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #0f2a6b;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-hero {
  position: relative;
  padding: 120px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 35%),
              radial-gradient(circle at 80% 80%, rgba(15,42,107,0.12), transparent 40%),
              linear-gradient(135deg, rgba(255,255,255,0.04), rgba(15,42,107,0.08));
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  z-index: 2;
}

.eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f2a6b;
  margin: 0 0 10px;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.35;
  color: #0f2a6b;
}

.hero-content .lead {
  margin: 0 0 20px;
  color: #0f2a6b;
  font-size: 1.05rem;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px 20px 80px;
}

.glass-card {
  width: min(700px, 95vw);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: #0f2a6b;
}

.card-header h2 { margin: 4px 0; font-size: 1.7rem; }
.card-header .muted { margin: 0; color: #0f2a6b; }
.card-header i { font-size: 2rem; color: #0f2a6b; }

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

.alert i { font-size: 1rem; }

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #166534;
}

.form-grid { display: grid; gap: 18px 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; color: #0f2a6b; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid #0f2a6b;
  border-radius: 14px;
  padding: 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.input-wrap:focus-within {
  border-color: #0f2a6b;
  box-shadow: 0 0 0 3px rgba(15,42,107,0.15);
  transform: translateY(-1px);
}

.input-wrap i { color: var(--muted); font-size: 1rem; }

.input-wrap input {
  border: none;
  background: transparent;
  color: #0f2a6b;
  font-size: 1rem;
  padding: 14px 10px;
  width: 100%;
  outline: none;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { accent-color: #0f2a6b; width: 16px; height: 16px; }

.link { color: #0f2a6b; text-decoration: none; font-weight: 700; }
.link:hover { text-decoration: underline; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #0f2a6b, #12357c, #0f2a6b);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15,42,107,0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15,42,107,0.45); }
.btn-primary:active { transform: translateY(0); }

.ghost {
  color: #0f2a6b;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.ghost:hover { border-color: #0f2a6b; color: #0f2a6b; }

@media (max-width: 768px) {
  .glass-card { padding: 24px; }
  .form-meta { flex-direction: column; align-items: flex-start; }
  .form-actions { justify-content: center; }
}
