* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
    color: #f8fbff;
}

body {
    position: relative;
    overflow-x: hidden;
    /* Fallback only — photo layer is .login-background (must stay above this) */
    background: #102137;
}

/* Photo is an <img> (reliable vs CSS url() + virtual directory quirks). Gradient is ::after */
.login-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.login-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 15, 28, 0.35), rgba(6, 15, 28, 0.75));
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 2.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.brand-mark {
    width: 100%;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.login-card {
    width: 100%;
    background: rgba(13, 28, 47, 0.66);
    border: 1px solid rgba(225, 235, 249, 0.35);
    border-radius: 12px;
    padding: 1.3rem 1.15rem 1.1rem;
    backdrop-filter: blur(4px);
}

    .login-card h1 {
        margin: 0 0 0.95rem;
        text-align: center;
        font-size: 1.45rem;
        font-weight: 500;
    }

.login-form {
    display: grid;
    gap: 0.55rem;
}

    .login-form label {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .login-form .login-form-textbox {
        width: 100%;
        border: 1px solid rgba(209, 220, 236, 0.8);
        border-radius: 8px;
        padding: 0.58rem 0.62rem;
        font-size: 1rem;
        color: #0f1723;
        background: #fefefe;
    }

    .login-form input:focus {
        outline: 2px solid #6db3ff;
        outline-offset: 1px;
    }

.checkbox-row {
    margin-top: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    cursor: pointer;
    user-select: none;
}

    .checkbox-row input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
    }

/* add by SW */
.login-form .login-display-message {
    color: red;
    font-size-adjust: 0.7
}

.login-form input[type=submit].sign-in-button {
    margin-top: 0.35rem;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 0.64rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #0d6efd;
    cursor: pointer;
}

    .login-form input[type=submit].sign-in-button:hover {
        background: #0a58ca;
    }
