:root {
    --brand-ink: #172a3d;
    --brand-orange: #f58220;
    --surface: #fff;
    --page: #f4f6f8;
    --text: #17212b;
    --muted: #68727d;
    --border: #dce2e8;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.login-modern {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at 50% 0%, rgba(245,130,32,.09), transparent 34rem), var(--page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 38px 38px 32px;
    background: var(--surface);
    border: 1px solid rgba(23,42,61,.08);
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(23,42,61,.12);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.login-logo {
    display: block;
    width: 210px;
    max-width: 80%;
    height: auto;
}

.login-product {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    color: var(--brand-ink);
    background: #edf1f4;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .02em;
}

.login-heading {
    margin-bottom: 24px;
    text-align: center;
}

.login-heading h1 {
    margin: 0 0 8px;
    color: var(--brand-ink);
    font-size: 29px;
    line-height: 1.2;
    font-weight: 720;
    letter-spacing: -.02em;
}

.login-heading p,
.login-support {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-alert {
    margin-bottom: 18px;
    padding: 11px 13px;
    color: #a4312c;
    background: #fff3f2;
    border: 1px solid #f4cecb;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.login-form { display: grid; gap: 18px; }

.login-field label {
    display: block;
    margin: 0 0 7px;
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 650;
}

.login-field input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(245,130,32,.14);
}

.password-control { position: relative; }
.password-control input { padding-right: 82px; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 6px 7px;
    color: var(--brand-ink);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #edf1f4;
    outline: none;
}

.login-submit {
    width: 100%;
    height: 50px;
    margin-top: 4px;
    color: #fff;
    background: var(--brand-ink);
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(23,42,61,.18);
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:hover {
    background: #213c56;
    box-shadow: 0 12px 26px rgba(23,42,61,.22);
    transform: translateY(-1px);
}

.login-submit:active { transform: translateY(0); }

.login-support {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
}

.login-footer {
    margin-top: 22px;
    color: #7a858f;
    font-size: 12px;
    letter-spacing: .04em;
}

@media (max-width: 520px) {
    .login-shell { justify-content: flex-start; padding: 20px 14px; }
    .login-card { margin-top: max(18px, 7vh); padding: 30px 22px 26px; border-radius: 16px; }
    .login-logo { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
