*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:      #0f1117;
  --surface: #1a1d27;
  --border:  #2a2d3a;
  --accent:  #4f8ef7;
  --accent2: #7c5cfc;
  --text:    #e8eaf0;
  --muted:   #6b7280;
  --radius:  14px;
}
body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.login-wrap { width: 100%; max-width: 420px; }
.brand { text-align: center; margin-bottom: 40px; }
.brand-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 18px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.brand h1 { font-size: 22px; font-weight: 600; }
.brand p  { font-size: 13px; color: var(--muted); margin-top: 5px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
}
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
input[type="text"], input[type="password"] {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-size: 15px;
  font-family: inherit; color: var(--text); transition: border-color .2s; outline: none;
}
input:focus { border-color: var(--accent); }
.btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: 10px; color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; margin-top: 8px; transition: opacity .2s;
}
.btn:hover { opacity: .88; }
.alert {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5; border-radius: 10px; padding: 11px 14px;
  font-size: 13px; margin-bottom: 20px; text-align: center;
}
.alert.info {
  background: rgba(79,142,247,.1); border: 1px solid rgba(79,142,247,.3);
  color: #93c5fd;
}
