/* ── Login page-specific styles — extracted from inline <style> in pages/Login.aspx.
   Cache-buster: bump the ?v=N on the <link> tag when modifying.
   v3: modern refresh — larger logo, softer card, higher-contrast text & controls. */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Override Site.master wrapper constraints from demo.css */
.page, .main, .body, .body-s {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Clinical neutral background: near-white base with one soft teal glow */
body.bg-cyan {
    background-color: #f7fafc;
    background-image:
    /* single soft teal glow, upper right */
    radial-gradient(circle at 78% 22%, rgba(24, 178, 232, 0.16) 0%, transparent 46%),
    /* base gradient */
    linear-gradient(180deg, #fbfdfe 0%, #eef3f7 100%);
    background-size: auto, auto;
    background-position: 0 0, 0 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    /* Floating decorative orbs — blurred, low-opacity, animate slowly for subtle motion */
    body.bg-cyan::before,
    body.bg-cyan::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        filter: blur(70px);
        opacity: 0.5;
        pointer-events: none;
        z-index: 0;
    }

    body.bg-cyan::before {
        width: 420px;
        height: 420px;
        top: -80px;
        left: -100px;
        background: radial-gradient(circle, #18b2e8 0%, transparent 70%);
        animation: orb-a 14s ease-in-out infinite alternate;
    }

    body.bg-cyan::after {
        width: 500px;
        height: 500px;
        bottom: -120px;
        right: -140px;
        background: radial-gradient(circle, #123c5a 0%, transparent 70%);
        animation: orb-b 18s ease-in-out infinite alternate;
    }

@keyframes orb-a {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, 30px);
    }
}

@keyframes orb-b {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-50px, -30px);
    }
}

/* Lift login card above orbs */
.login-wrapper {
    position: relative;
    z-index: 1;
    flex-direction: column;
    gap: 18px;
}

/* Copyright line below the card */
.login-tagline {
    font-size: 12px;
    color: #33455c;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: #ffffff;
    border: 1px solid rgba(0, 35, 156, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px -12px rgba(23, 45, 77, 0.40), 0 8px 20px -8px rgba(23, 45, 77, 0.20), 0 0 0 1px rgba(255,255,255,0.6) inset;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

/* Header — clean white with a larger, natural-color logo and a thin gradient accent */
.login-header {
    background: #ffffff;
    border-bottom: none;
    padding: 24px 30px 16px;
    text-align: center;
    position: relative;
}

    /* Divider: navy -> teal -> navy, fading to transparent at both ends, so the
       header separates from the body without a hard rule cutting the card in
       two. Colours from the Hudson Regional Health logo and website (royal blue #00239c, sky blue #18b2e8). */
    .login-header::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(0, 35, 156, 0.42) 28%, rgba(24, 178, 232, 0.55) 50%, rgba(0, 35, 156, 0.42) 72%, transparent 100%);
    }

    .login-header img {
        display: inline-block;
        max-width: 250px;
        max-width: min(250px, 100%);   /* smaller logo (was 330px);  phones: never wider than the card (it was clipped at 375 px) */
        max-height: 120px;
        width: auto;
        height: auto;
        object-fit: contain;
        /* Logo shown larger, in its natural colors. The old brightness/invert
           filter that forced it to white has been removed — it was invisible
           on the white header. */
    }

.app-name {
    font-size: 12px;
    color: #00239c;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 14px 0 0;
}

.login-body {
    padding: 18px 30px 20px;
    background: #ffffff;
}

.login-field {
    position: relative;
    margin-bottom: 14px;
}

    /* Labels — strong navy for clear contrast on white */
    .login-field label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #17324f;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }

    /* Inputs — larger, rounder, higher-contrast border with a clear focus ring */
    .login-field input {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 44px 10px 42px;
        font-size: 14px;
        color: #1a2a3d;
        background: #f7fafd;
        border: 1.5px solid #c2d2e6;
        border-radius: 10px;
        outline: none;
        transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
        height: auto !important;
    }

        .login-field input::placeholder {
            color: #8aa0b8;
        }

        .login-field input:hover {
            border-color: #a9c0da;
        }

        .login-field input:focus {
            border-color: #0b6f96;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(24, 178, 232, 0.22);
        }

    .login-field .field-icon {
        position: absolute;
        left: 14px;
        bottom: 13px;
        color: #6b86a3;
        font-size: 14px;
        pointer-events: none;
    }

.toggle-password {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #6b86a3;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

    .toggle-password:hover {
        color: #00239c;
        background: #e8f6f3;
    }

/* Primary button — gradient fill, larger tap target, subtle lift on hover */
.btn-login {
    background: linear-gradient(180deg, #17506b 0%, #00239c 100%);
    border: 1px solid #0a2c45;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 10px;
    width: 100%;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 8px 18px -6px rgba(0, 35, 156, 0.50);
    transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
    margin-top: 4px;
}

    .btn-login:hover {
        background: linear-gradient(180deg, #1a5c78 0%, #123f5e 100%);
        color: #fff;
        box-shadow: 0 10px 22px -6px rgba(24, 178, 232, 0.45);
    }

    .btn-login:active {
        transform: translateY(1px);
        box-shadow: 0 4px 12px -6px rgba(0, 35, 156, 0.55);
    }

    .btn-login:disabled {
        background: #8fa9bd;
        border-color: #8fa9bd;
        box-shadow: none;
        cursor: not-allowed;
    }

.login-divider {
    height: 1px;
    background: #e6edf5;
    margin: 0 30px;
}

.login-footer {
    padding: 10px 30px 14px;
    text-align: center;
    background: #ffffff;
}

    .login-footer a {
        font-size: 13px;
        color: #00239c;
        text-decoration: none;
        font-weight: 600;
    }

        .login-footer a:hover {
            color: #17324f;
            text-decoration: underline;
        }

/* BS3-palette alert colors — slightly stronger for contrast */
.alert-login-error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-left: 4px solid #c0392b;
    color: #922b21;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-login-success {
    background: #eaf6ea;
    border: 1px solid #c3e6c3;
    border-left: 4px solid #27853a;
    color: #1e6b2e;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .alert-login-error:empty, .alert-login-success:empty {
        display: none;
    }

/* Clinical neutral background: decorative orbs suppressed.
   Delete this rule to bring the blurred teal/navy orbs back. */
body.bg-cyan::before,
body.bg-cyan::after { display: none; }

/* Hospital (Portal.Facility) under the Hudson Regional Health logo, then the page caption. */
.facility-name { text-align: center; font-size: 17px; font-weight: 700; color: #00239c; letter-spacing: .2px; line-height: 1.25; margin: 8px 0 0; width: 100%; }
.facility-name + .app-name { margin-top: 4px; }
