:root {
  --bg: #050b18;
  --card: #0a1428;
  --line: rgba(148, 175, 210, 0.16);
  --text: #eef3fb;
  --muted: #93a4c3;
  --accent: #00a8ff;
  --accent-2: #38bdf8;
  --danger: #f87171;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 20% 0%, rgba(0, 168, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 10%, rgba(3, 105, 161, 0.18), transparent 50%),
    linear-gradient(rgba(148, 175, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 175, 210, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}

.shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.card {
  width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(16, 28, 54, 0.97), rgba(10, 20, 40, 0.95));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 10, 35, 0.5);
  animation: rise 0.45s ease both;
  text-align: center;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.login-logo {
  width: min(320px, 82vw);
  height: auto;
  border-radius: 14px;
  margin: 0 auto 0.85rem;
  display: block;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 14px 36px rgba(0, 168, 255, 0.3);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent-2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #38bdf8, #f3f7ff 50%, #c9d4e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 0.45rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.slogan {
  color: var(--accent-2);
  font-weight: 600;
}

.error {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  font-size: 0.86rem;
  text-align: start;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: start;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 11, 24, 0.75);
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: rgba(0, 168, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.14);
}

button {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 11px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #f8fbff;
  background: linear-gradient(135deg, #0369a1, #00a8ff 55%, #38bdf8);
  transition: transform 0.15s ease, filter 0.15s ease;
}

button:hover { filter: brightness(1.06); }
button:active { transform: translateY(1px); }

.foot {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}
