/* ==========================================================================
   MENIXA Login — Unified Deep Navy Design System
   ========================================================================== */

* { box-sizing: border-box; }

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --bg: #07111F;
  --card: #0D1B2A;
  --line: #1E344F;
  --line-strong: #2A486C;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 25%, rgba(37, 99, 235, 0.16) 0%, transparent 60%), #07111F;
  color: var(--text);
  font-family: "Tajawal", -apple-system, sans-serif;
}

.login-page {
  width: 100%;
  max-width: 440px;
}

.login-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #F8FAFC;
  margin-bottom: 16px;
}

.login-brand-icon {
  width: 36px;
  height: 31px;
  object-fit: contain;
}

h1 {
  margin: 0 0 8px;
  color: #F8FAFC;
  font-size: 22px;
  font-weight: 800;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

form {
  display: grid;
  gap: 16px;
  text-align: right;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #CBD5E1;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #07111F;
  color: #F8FAFC;
  font: inherit;
  outline: none;
  transition: all 0.15s ease;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

button {
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 42px;
}

button:hover {
  background: var(--primary-hover);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-status {
  min-height: 24px;
  margin: 0;
  color: #F87171;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.login-status:empty {
  display: none;
}

.text-action {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #60A5FA;
  text-align: start;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.text-action:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-login, .secondary-auth {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #13273F;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  min-height: 44px;
}

.google-login:hover, .secondary-auth:hover {
  background: #1B3554;
}

.google-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: 700;
  background: #07111F;
}

.session-security-note {
  margin: 10px 4px 0;
  text-align: center;
  color: #64748B;
  font-size: 11px;
  line-height: 1.5;
}

.verification-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  color: #FBBF24;
  font-size: 13px;
}

.verification-box p {
  margin: 0 0 10px;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.language-toggle {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.language-toggle:hover {
  color: #F8FAFC;
  border-color: var(--line-strong);
}

.lang-en form {
  text-align: left;
}

.lang-en .login-card {
  font-family: "Inter", "Tajawal", -apple-system, sans-serif;
}

.lang-en .text-action {
  text-align: left;
}
