/* ── SetPassword page-specific styles — extracted from inline <style> in pages/SetPassword.aspx.
   Cache-buster: bump the ?v=N on the <link> tag when modifying. */

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

    .page, .main, .body, .body-s {
        max-width: none !important; width: 100% !important;
        margin: 0 !important; padding: 0 !important; box-sizing: border-box !important;
    }

    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;
    }
    body.bg-cyan::before, body.bg-cyan::after {
        content: ''; position: absolute; border-radius: 50%;
        filter: blur(60px); opacity: 0.45; pointer-events: none; z-index: 0;
    }
    body.bg-cyan::before {
        width: 380px; height: 380px; top: -60px; left: -80px;
        background: radial-gradient(circle, #18b2e8 0%, transparent 70%);
    }
    body.bg-cyan::after {
        width: 460px; height: 460px; bottom: -100px; right: -120px;
        background: radial-gradient(circle, #123c5a 0%, transparent 70%);
    }

    .login-wrapper { position: relative; z-index: 1; flex-direction: column; gap: 14px;
        width: 100%; min-height: 100vh;
        display: flex; align-items: center; justify-content: center; padding: 20px; }
    .login-tagline { font-size: 11px; color: #4a5568; letter-spacing: 0.3px; }

    .login-card {
        background: #fff; border: 1px solid rgba(0, 35, 156, 0.18); border-radius: 6px;
        box-shadow: 0 18px 50px -10px rgba(11, 38, 148, 0.45), 0 0 0 1px rgba(255,255,255,0.5) inset;
        width: 100%; max-width: 460px; overflow: hidden;
    }
.login-header {
    background: #ffffff;
    border-bottom: none;
    position: relative;
    padding: 22px 30px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
    .login-header img { display: block; max-width: 280px; max-height: 70px; object-fit: contain; }
    .app-name { text-align: center; font-size: 11px; color: #00239c; letter-spacing: 2px; text-transform: uppercase; margin: 6px 0 0; width: 100%; }
    .login-body { padding: 22px 30px 18px; background: #f8fafd; }

    .login-field { position: relative; margin-bottom: 14px; }
    .login-field label { display: block; font-size: 12px; font-weight: 700; color: #0b2694; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
    .login-field input {
        display: block; width: 100%; box-sizing: border-box;
        padding: 8px 40px 8px 36px; font-size: 13px; color: #333;
        background: #fff; border: 1px solid #c9d6e5; border-radius: 3px;
        outline: none; transition: border-color 0.15s, box-shadow 0.15s; height: auto !important;
    }
    .login-field input:focus { border-color: #0b6f96; box-shadow: 0 0 0 2px rgba(24, 178, 232, 0.22); }
    .login-field .field-icon { position: absolute; left: 11px; bottom: 10px; color: #8aa3c0; font-size: 13px; pointer-events: none; }

    .btn-login {
        background: #00239c; border: 1px solid #0a2c45; color: #fff;
        font-size: 14px; font-weight: 600; padding: 8px 16px;
        border-radius: 3px; width: 100%; letter-spacing: 0.3px;
        transition: background 0.15s; margin-top: 6px; cursor: pointer;
    }
    .btn-login:hover { background: #123f5e; color: #fff; }
    .btn-login:active { background: #0a2c45; }

    .login-divider { height: 1px; background: #e2e8f0; margin: 0 30px; }
    .login-footer { padding: 12px 30px 16px; text-align: center; background: #f8fafd; }
    .login-footer a { font-size: 12px; color: #00239c; text-decoration: none; font-weight: 600; }
    .login-footer a:hover { color: #0b2694; text-decoration: underline; }

    .alert-login-error { background: #f2dede; border: 1px solid #ebccd1; border-left: 4px solid #a94442; color: #a94442; border-radius: 3px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; }
    .alert-login-info { background: #e6f6fd; border: 1px solid #b9e6f8; border-left: 4px solid #18b2e8; color: #0b6f96; border-radius: 3px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; }
    .alert-login-error:empty, .alert-login-info:empty { display: none; }

    .password-rules { list-style: none; padding: 8px 12px; margin: 0 0 12px;
        background: #eef6fb; border: 1px solid #d4ebf6; border-left: 4px solid #18b2e8;
        border-radius: 3px; font-size: 11px; color: #0b2694; }
    .password-rules li { padding: 2px 0 2px 18px; position: relative; }
    .password-rules li::before { content: '\f058'; font-family: 'FontAwesome'; position: absolute; left: 0; top: 2px; color: #0b6f96; font-size: 11px; }
    .password-rules:empty { display: none; }

    .intro-text { font-size: 12px; color: #4a5568; margin: 0 0 14px; line-height: 1.5; }

    .toggle-password {
        position: absolute; right: 10px; bottom: 8px;
        color: #8aa3c0; font-size: 13px;
        cursor: pointer; background: none; border: none;
        padding: 2px 6px; line-height: 1;
    }
    .toggle-password:hover { color: #00239c; }
    .login-field input[type="password"], .login-field input[type="text"] { padding-right: 32px; }

/* 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; }

/* Divider: navy -> teal -> navy, fading to transparent at both ends.
   Matches pages/css/login.css. Colours sampled from the logo. */
.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%);
}
/* 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: 12px 0 0; width: 100%; }
.facility-name + .app-name { margin-top: 4px; }
