:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body.login-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: #172033;
    background:
        linear-gradient(135deg, rgba(9, 75, 122, .88), rgba(15, 118, 110, .76)),
        url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/5/8/26") center/cover;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.15), transparent 42%);
}

.login-card {
    width: min(430px, 100%);
    padding: 34px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 70px rgba(3, 24, 45, .36);
}

.login-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1769aa, #0f766e);
    color: white;
}

.login-mark svg {
    width: 29px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-heading span {
    color: #0f766e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 8px 0 7px;
    font-size: 27px;
}

.login-heading p {
    margin: 0 0 25px;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

#loginForm {
    display: grid;
    gap: 16px;
}

#loginForm label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

#loginForm input {
    width: 100%;
    height: 45px;
    padding: 0 13px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: white;
    color: #172033;
    font: 15px Arial, sans-serif;
    outline: none;
}

#loginForm input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22,119,255,.13);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px !important;
}

.password-field button {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

#loginError {
    min-height: 18px;
    color: #b42318;
    font-size: 13px;
}

.login-submit {
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #1769aa;
    color: white;
    font: 700 15px Arial, sans-serif;
    cursor: pointer;
}

.login-submit:hover {
    background: #0d5791;
}

.login-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.login-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e9ef;
    color: #7b8492;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 520px) {
    .login-shell { padding: 12px; }
    .login-card { padding: 25px 20px; border-radius: 13px; }
}
