/* ==========================================================================
   1. FONTS
   ========================================================================== */
@font-face {
    font-family: 'robotoregular';
    src: url('../fonts/roboto-regular-webfont.woff2') format('woff2'),
        url('../fonts/roboto-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('../fonts/Sora-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 800;
    font-style: normal;
}

@font-face {
    font-family: 'Font Awesome 6 Pro';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../fonts/fa-solid-900.woff2');
}

/* ==========================================================================
   2. CSS VARIABLES & DEFAULTS
   ========================================================================== */
:root {
    --color-primary-dark: #004D4D;
    --color-primary-darker: #1F3433;
    --color-white: #FFFFFF;
    --color-card-bg: #E6F2F2;
    --font-body: 'robotoregular', sans-serif;
    --font-heading: 'Sora', sans-serif;
}

/* ==========================================================================
   3. GLOBAL STYLES & THEME
   ========================================================================== */
body {
    min-height: 100vh;
    font-family: var(--font-body);
}

body.dark {
    background: var(--color-white);
    color: var(--color-white);
}

/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   5. PAGE LAYOUT
   ========================================================================== */
.header-login {
    display: flex;
    justify-content: center;
    padding: 32px 24px 40px 24px;
    border-radius: 0 0 64px 0;
    width: 100%;
}

.header-login-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 552px;
}

.grid-container {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 24px auto;
    padding: 0 24px;
}

.grid-container .flex-row {
    display: flex;
    gap: 12px;
}

/* --- Theming for Layout --- */
.dark .header-login {
    background-color: var(--color-primary-dark);
}

/* ==========================================================================
   6. COMPONENT STYLES
   ========================================================================== */

/* --- Header Top Row --- */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sutter-health-logo {
    background-image: url('../img/2025/mho-logo-white.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 220px;
    height: 40px;
    flex-shrink: 0;
}

.header-top-row .chatNowBtn {
    position: static;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 140px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.header-top-row .chatNowBtn:before {
    font-family: 'Font Awesome 6 Pro';
    content: '\f4b6';
    font-size: 18px;
    line-height: 1;
}

/* Theming */
.dark .header-top-row .chatNowBtn {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

/* --- Header Text Content --- */
.login-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.login-card h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 56px;
    letter-spacing: -0.88px;
    margin: 0;
}

.login-card .login-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 26px;
    margin: 0;
}

/* Theming */
.dark .login-card h1,
.dark .login-card .login-subtitle {
    color: var(--color-white);
}

/* --- Header Login Buttons --- */
.login-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: center;
    max-width: 552px;
    width: 100%;
}

.login-button {
    display: flex;
    height: 56px;
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 48px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
}

/* Theming */
.dark .btn-signin {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

.dark .btn-signup {
    border: 2px solid var(--color-white);
    backdrop-filter: blur(4px);
    color: var(--color-white);
}

/* --- Main Content Grid --- */
.btn-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    margin-bottom: 12px;
    border-radius: 9px;
    box-shadow: 0px 0px 4px -2px rgba(16, 24, 40, 0.06), 0px 2px 8px -2px rgba(16, 24, 40, 0.10);
    min-height: 104px;
    text-decoration: none;
}

.btn-card h2 {
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.card-icon {
    width: 48px;
    height: 48px;
    order: -1;
    font-family: 'Font Awesome 6 Pro';
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theming */
.dark .btn-card {
    background-color: var(--color-card-bg);
}

.dark .btn-card h2 {
    color: var(--color-primary-dark);
}

.dark .card-icon {
    color: var(--color-primary-darker);
}

/* Individual Card Icons */
.doctor-logo:before {
    content: '\f0f0';
}

.location-icon:before {
    content: '\f0f8';
}

.calendar-clock-icon:before {
    content: '\e0d2';
}

.campus-map-icon:before {
    content: '\f279';
}

.icon-invoice:before {
    content: '\f571';
}

.mobile-screen-icon:before {
    content: '\f3cf';
}

/* --- Genesys Floating Action Button (FAB) --- */
/* Note: Default style for the chat button when it is NOT in a component override. */
.chatNowBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 100px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -1px 8px 0 rgba(0, 0, 0, 0.25), 0 4px 12px 0 rgba(0, 0, 0, 0.25);
    z-index: 1000;
    border: none;
}

.chatNowBtn:before {
    content: '\f4b6';
    font-family: 'Font Awesome 6 Pro';
    font-size: 24px;
}

/* Theming */
.dark .chatNowBtn {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (min-width: 360px) {
    .login-card h1 {
        font-size: 3.6rem;
    }
}

@media (min-width: 428px) {
    .login-card h1 {
        font-size: 4.4rem;
    }

    .header-top-row {
        height: 44px;
    }

    /* Widen the chat button and add a gap for the text */
    .header-top-row .chatNowBtn {
        width: auto;
        padding: 0 24px;
        gap: 8px;
    }

    /* Make the chat button text visible and style it */
    .header-top-row .chat-button-text.visually-hidden {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-family: var(--font-heading);
        font-size: 16px;
        line-height: 130%;
    }

    /* Theming for responsive text */
    .dark .header-top-row .chat-button-text.visually-hidden {
        color: var(--color-white);
    }
}