:root {
  --brand-navy: #173f63;
  --brand-navy-deep: #102e4b;
  --brand-teal: #0b7274;
  --brand-ink: #18364a;
  --brand-muted: #6d7f89;
  --brand-line: #d8e3e8;
  --brand-canvas: #f3f6f8;
  font-family: Cairo, Tahoma, "Segoe UI", Arial, sans-serif;
  color: var(--brand-ink);
  background: var(--brand-canvas);
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--brand-canvas); }
.login-body { min-height: 100vh; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 36px 18px; }
.login-card { position: relative; width: min(100%, 520px); padding: 24px 42px 26px; overflow: hidden; border: 1px solid #d5e0e6; border-radius: 18px; background: #fff; box-shadow: 0 22px 58px rgba(19, 49, 72, .12); }
.login-card::before { position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-navy); content: ""; }
.login-topline { display: flex; justify-content: flex-start; margin: 0 0 18px; }
.login-language { display: inline-flex; min-width: 78px; height: 34px; align-items: center; justify-content: center; border: 1px solid #b9ccd8; border-radius: 8px; background: #fbfdfe; color: var(--brand-navy); font-size: .72rem; font-weight: 800; text-decoration: none; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.login-language:hover { border-color: var(--brand-teal); background: #eef7f7; color: var(--brand-teal); }
.login-brand { padding: 4px 0 22px; border-bottom: 1px solid var(--brand-line); text-align: center; }
.brand-lockup { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.softmagic-logo { display: block; width: 178px; height: auto; object-fit: contain; }
.brand-copy { min-width: 0; text-align: center; }
.brand-copy strong { display: block; color: var(--brand-navy); font-family: Inter, "Segoe UI", sans-serif; font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.brand-copy small { display: block; margin-top: 5px; color: var(--brand-muted); font-size: .69rem; line-height: 1.45; }
.brand-subline { margin: 13px 0 0; color: var(--brand-muted); font-size: .72rem; }
.login-heading { margin: 25px 0 21px; text-align: center; }
.login-kicker { display: inline-block; color: var(--brand-teal); font-size: .65rem; font-weight: 900; letter-spacing: 1.35px; }
.login-card h1 { margin: 7px 0 2px; color: var(--brand-navy-deep); font-size: 1.78rem; font-weight: 800; line-height: 1.25; letter-spacing: -.45px; }
.login-heading p { margin: 5px 0 0; color: var(--brand-muted); font-size: .78rem; }
.login-error { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #efc9c4; border-radius: 9px; background: #fff5f3; color: #973b35; font-size: .78rem; line-height: 1.55; }
.login-form { display: grid; gap: 16px; }
.login-field { display: grid; gap: 7px; text-align: start; }
.field-label { color: #2b4c5d; font-size: .8rem; font-weight: 800; }
.input-wrap { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; inset-inline-start: 13px; width: 18px; height: 18px; fill: none; stroke: #6f8995; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; pointer-events: none; }
.login-form input:not([type=checkbox]) { width: 100%; height: 47px; box-sizing: border-box; padding: 10px 14px; padding-inline-start: 43px; border: 1px solid #c5d6de; border-radius: 9px; background: #fcfefe; color: var(--brand-ink); font: inherit; font-size: .86rem; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.login-form input:not([type=checkbox]):hover { border-color: #8baebb; background: #fff; }
.login-form input:not([type=checkbox]):focus { outline: 0; border-color: var(--brand-teal); background: #fff; box-shadow: 0 0 0 3px rgba(11, 114, 116, .14); }
.login-form .remember { display: flex; align-items: center; gap: 8px; margin-top: -1px; color: #607682; font-size: .74rem; font-weight: 500; }
.login-form .remember input { width: 16px; height: 16px; accent-color: var(--brand-teal); }
.login-form button { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 9px; background: var(--brand-navy); color: #fff; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 900; box-shadow: 0 8px 18px rgba(23, 63, 99, .18); transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.login-form button:hover { background: var(--brand-navy-deep); box-shadow: 0 11px 23px rgba(23, 63, 99, .23); transform: translateY(-1px); }
.login-form button:active { transform: scale(.98); }
.login-form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-footer { display: grid; gap: 3px; margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--brand-line); color: #71848e; font-size: .66rem; text-align: center; }
.login-footer strong { color: var(--brand-navy); font-size: .72rem; font-weight: 800; }
.login-footer span { font-style: normal; }
@media (max-width: 600px) {
  .login-shell { padding: 18px 12px; }
  .login-card { padding: 23px 24px 22px; border-radius: 14px; }
  .softmagic-logo { width: 162px; }
  .brand-copy strong { font-size: 1.05rem; }
  .brand-copy small { font-size: .62rem; }
  .login-card h1 { font-size: 1.58rem; }
}
@media (max-width: 400px) { .login-card { padding: 22px 18px 20px; } .softmagic-logo { width: 150px; } }
@media (prefers-reduced-motion: reduce) { .login-language, .login-form button { transition: none; } }
