
/* =========================================
   CURIOSE HUB
   SIGN-IN PAGE STYLESHEET
   ========================================= */


/* ---------- ROOT VARIABLES ---------- */

:root {
    --cream: #FFF9F0;
    --emerald: #087B52;
    --lime: #D8F36A;
    --coral: #FF725E;
    --lavender: #B8A5FF;
    --sky: #8DDDF2;
    --ink: #17231D;
    --gray: #737D74;
    --white: #FFFFFF;
    --border: #E9E7DF;

    --heading-font: "Lexend", sans-serif;
    --body-font: "DM Sans", sans-serif;
}


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;

    background: var(--cream);
    color: var(--ink);
    font-family: var(--body-font);

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* ---------- MAIN PAGE ---------- */

.hub-page {
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;

    margin: 0 auto;
    padding: 0 clamp(24px, 6.5vw, 100px);

    display: flex;
    flex-direction: column;
}


/* =========================================
   HEADER
   ========================================= */

.hub-header {
    width: 100%;
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid rgba(23, 35, 29, 0.09);
}


/* Brand */

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;

    font-family: var(--heading-font);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.3px;

    color: var(--ink);
}


/* Logo image */

.brand-logo {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;

    /* Blend the white image background into the page */
    mix-blend-mode: multiply;
}


/* Wordmark text */

.wordmark-text {
    display: inline;
}

.wordmark-dot {
    color: var(--emerald);
}


/* Header note */

.header-note {
    max-width: 50%;

    color: var(--gray);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: right;
}


/* =========================================
   MAIN LAYOUT
   ========================================= */

.signin-layout {
    flex: 1;
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(360px, 0.9fr);

    align-items: center;
    gap: clamp(35px, 5vw, 75px);

    padding: 65px 0 75px;
}


/* =========================================
   WELCOME PANEL
   ========================================= */

.welcome-panel {
    width: 100%;
    min-width: 0;
    max-width: 590px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* Eyebrow */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 27px;

    color: var(--emerald);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.eyebrow-dot {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    background: var(--lime);
    border-radius: 50%;

    box-shadow: 0 0 0 4px rgba(216, 243, 106, 0.25);
}


/* Welcome heading */

.welcome-panel h1 {
    font-family: var(--heading-font);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.13;
    font-weight: 700;
    letter-spacing: -3.5px;

    color: var(--ink);
}

.welcome-panel h1 span {
    color: var(--emerald);
}


/* Welcome description */

.welcome-copy {
    max-width: 450px;

    margin-top: 23px;

    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
    font-weight: 400;
}


/* =========================================
   HERO MASCOT IMAGE
   ========================================= */

.welcome-art.mascot-scene {
    position: relative;

    width: 100%;
    max-width: 490px;
    height: 290px;

    margin-top: 27px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    overflow: visible;
}

.hub-mascot-group {
    display: block;

    width: 100%;
    max-width: 450px;
    height: 280px;

    object-fit: contain;
    object-position: left center;

    animation: mascot-float 4s ease-in-out infinite;
}


/* Gentle mascot animation */

@keyframes mascot-float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }

    100% {
        transform: translateY(0);
    }
}


/* =========================================
   WELCOME FOOTER
   ========================================= */

.welcome-footer {
    width: 100%;
    max-width: 470px;

    margin-top: 20px;
    padding-top: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    border-top: 1px solid rgba(23, 35, 29, 0.12);

    color: var(--gray);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}


/* =========================================
   SIGN-IN PANEL
   ========================================= */

.signin-panel {
    width: 100%;
    min-width: 0;
    max-width: 460px;

    justify-self: end;
}


/* Sign-in card */

.signin-card {
    width: 100%;
    min-width: 0;

    padding: 43px 42px;

    background: var(--white);
    border: 1px solid rgba(23, 35, 29, 0.06);
    border-radius: 18px;

    box-shadow: 0 18px 60px rgba(23, 35, 29, 0.06);
}


/* =========================================
   CARD BRANDING
   ========================================= */

.card-mark {
    width: 55px;
    height: 55px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.card-mark img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    /* Blend white logo background into the card */
    mix-blend-mode: multiply;
}


/* Card text */

.card-kicker {
    margin-bottom: 11px;

    color: var(--emerald);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.signin-card h2 {
    font-family: var(--heading-font);
    font-size: 29px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -1.2px;

    color: var(--ink);
}

.card-description {
    margin-top: 10px;
    margin-bottom: 30px;

    color: var(--gray);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   FORM
   ========================================= */

#signin-form {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
}


/* Labels */

#signin-form > label:not(.remember-row),
.password-label-row label {
    margin-bottom: 9px;

    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}


/* Input fields */

#signin-form input[type="text"],
#signin-form input[type="password"] {
    width: 100%;
    min-width: 0;
    height: 51px;

    padding: 0 15px;

    background: #FCFCFA;
    border: 1px solid var(--border);
    border-radius: 8px;

    outline: none;

    color: var(--ink);
    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#signin-form input::placeholder {
    color: #A5AAA4;
}

#signin-form input:focus {
    background: var(--white);
    border-color: var(--emerald);

    box-shadow: 0 0 0 3px rgba(8, 123, 82, 0.09);
}


/* Password label row */

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 21px;
}

.password-label-row label {
    margin-bottom: 9px;
}


/* Forgot password */

.text-button {
    flex-shrink: 0;

    margin-bottom: 9px;
    padding: 0;

    background: transparent;
    border: none;

    color: var(--emerald);
    font-size: 11px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.text-button:hover {
    color: var(--coral);
}


/* Password field */

.password-field {
    position: relative;
    width: 100%;
    min-width: 0;
}

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

.show-password {
    position: absolute;
    top: 50%;
    right: 15px;

    transform: translateY(-50%);

    padding: 5px 0;

    background: transparent;
    border: none;

    color: var(--emerald);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.show-password:hover {
    color: var(--coral);
}


/* Remember me */

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 19px;

    color: var(--gray);
    font-size: 11px;
    font-weight: 500;

    cursor: pointer;
}

.remember-row input {
    width: 15px;
    height: 15px;

    accent-color: var(--emerald);
    cursor: pointer;
}


/* =========================================
   SIGN-IN BUTTON
   ========================================= */

.signin-button {
    width: 100%;
    min-height: 53px;

    margin-top: 25px;
    padding: 0 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--emerald);
    border: none;
    border-radius: 8px;

    color: var(--white);
    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.signin-button:hover {
    background: #066644;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(8, 123, 82, 0.18);
}

.button-arrow {
    font-size: 19px;
    font-weight: 400;
}


/* Form feedback */

.prototype-message {
    min-height: 0;
    margin-top: 12px;

    color: var(--emerald);
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================
   PRIVATE ACCESS NOTICE
   ========================================= */

.secure-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 25px;
    padding-top: 19px;

    border-top: 1px solid var(--border);

    color: var(--gray);
    font-size: 10px;
    line-height: 1.7;
}

.secure-icon {
    color: var(--emerald);
    font-size: 16px;
    line-height: 1;
}


/* =========================================
   SUPPORT LINK
   ========================================= */

.help-line {
    margin-top: 23px;

    text-align: center;

    color: var(--gray);
    font-size: 11px;
    line-height: 1.8;
}

.help-line a {
    display: inline-block;

    margin-left: 3px;

    color: var(--emerald);
    font-weight: 700;

    transition: color 0.2s ease;
}

.help-line a:hover {
    color: var(--coral);
}


/* =========================================
   BOTTOM FOOTER
   ========================================= */

.hub-bottom {
    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid rgba(23, 35, 29, 0.09);

    color: var(--gray);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.hub-bottom a {
    color: var(--emerald);
    transition: color 0.2s ease;
}

.hub-bottom a:hover {
    color: var(--coral);
}


/* =========================================
   TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 1050px) {

    .hub-page {
        padding-left: 5%;
        padding-right: 5%;
    }

    .signin-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(340px, 0.95fr);

        gap: 35px;
    }

    .welcome-panel h1 {
        font-size: clamp(39px, 5vw, 56px);
        letter-spacing: -2.5px;
    }

    .welcome-copy {
        font-size: 14px;
    }

    .welcome-art.mascot-scene {
        height: 250px;
    }

    .hub-mascot-group {
        height: 240px;
    }

    .signin-card {
        padding: 35px 30px;
    }

}


/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 760px) {

    .hub-page {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hub-header {
        min-height: 78px;
    }

    .wordmark {
        font-size: 22px;
    }

    .wordmark img {
        width: 36px;
        height: 36px;
    }

    .header-note {
        display: none;
    }

    .signin-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;

        padding: 45px 0 50px;
    }

    .welcome-panel {
        max-width: 520px;
    }

    .eyebrow {
        margin-bottom: 20px;
        font-size: 9px;
    }

    .welcome-panel h1 {
        font-size: clamp(40px, 10vw, 55px);
        letter-spacing: -2.5px;
    }

    .welcome-copy {
        max-width: 450px;
        margin-top: 17px;
        font-size: 13px;
    }

    .welcome-art.mascot-scene {
        max-width: 100%;
        height: 245px;
        margin-top: 20px;
        justify-content: center;
    }

    .hub-mascot-group {
        width: 100%;
        max-width: 390px;
        height: 235px;
        object-position: center;
    }

    .welcome-footer {
        max-width: 100%;
        margin-top: 10px;
        font-size: 8px;
    }

    .signin-panel {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .signin-card {
        padding: 35px 27px;
    }

    .signin-card h2 {
        font-size: 26px;
    }

    .help-line {
        margin-top: 19px;
    }

    .hub-bottom {
        min-height: 65px;
        font-size: 8px;
        letter-spacing: 0.6px;
    }

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 400px) {

    .hub-page {
        padding-left: 17px;
        padding-right: 17px;
    }

    .welcome-panel h1 {
        font-size: 39px;
    }

    .welcome-art.mascot-scene {
        height: 210px;
    }

    .hub-mascot-group {
        height: 205px;
    }

    .signin-card {
        padding: 30px 21px;
    }

    .welcome-footer {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .hub-bottom {
        flex-wrap: wrap;
        justify-content: center;
        padding: 17px 0;
        text-align: center;
    }

}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =====================================
   CURIOSE HUB - FLOATING MASCOT CHAT
===================================== */

.support-chat-launcher {
    position: fixed;
    right: 28px;
    bottom: 25px;
    z-index: 1000;
    width: 76px;
    height: 76px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    animation: mascot-chat-float 3s ease-in-out infinite;
}

.support-chat-launcher img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.support-chat-launcher:hover img {
    transform: scale(1.1);
}

@keyframes mascot-chat-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* CHAT WINDOW */

.support-chat-window {
    position: fixed;
    right: 28px;
    bottom: 115px;
    z-index: 1001;
    width: 350px;
    max-width: calc(100vw - 36px);
    height: 450px;
    max-height: calc(100vh - 150px);
    background: #FFF9F0;
    border: 1px solid #E9E7DF;
    border-radius: 17px;
    box-shadow: 0 12px 45px rgba(23, 35, 29, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.support-chat-window[hidden] {
    display: none;
}

.support-chat-header {
    padding: 17px;
    background: #087B52;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-chat-brand > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-chat-header span {
    font-size: 11px;
    opacity: 0.85;
}

.support-chat-status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #D8F36A;
}

.support-chat-close {
    border: none;
    background: transparent;
    color: white;
    font-size: 27px;
    cursor: pointer;
}

.support-chat-messages {
    flex: 1;
    padding: 17px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-chat-time {
    display: block;
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 1px;
    color: #737D74;
}

.support-message {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.support-message-agent {
    background: white;
    color: #17231D;
    border: 1px solid #E9E7DF;
    border-top-left-radius: 3px;
}

.support-message-client {
    align-self: flex-end;
    background: #087B52;
    color: white;
    border-top-right-radius: 3px;
}

.support-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: white;
    border-top: 1px solid #E9E7DF;
}

.support-chat-form input {
    flex: 1;
    min-width: 0;
    padding: 11px;
    border: 1px solid #E9E7DF;
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

.support-chat-form input:focus {
    border-color: #087B52;
}

.support-chat-form button {
    width: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: #087B52;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.support-chat-footer {
    padding: 8px;
    text-align: center;
    font-size: 9px;
    letter-spacing: 1px;
    color: #737D74;
    background: white;
}

.support-text-link {
    padding: 0;
    border: none;
    background: transparent;
    color: #087B52;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.support-text-link:hover {
    color: #FF725E;
}

@media (max-width: 480px) {
    .support-chat-launcher {
        width: 65px;
        height: 65px;
        right: 16px;
        bottom: 17px;
    }

    .support-chat-window {
        right: 12px;
        bottom: 95px;
        width: calc(100vw - 24px);
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-chat-launcher {
        animation: none;
    }
}


/* Automated support chat quick replies */
.support-chat-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 92%;
    align-self: flex-start;
}

.support-chat-choice {
    border: 1px solid #087B52;
    border-radius: 18px;
    background: #FFFFFF;
    color: #087B52;
    padding: 9px 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.support-chat-choice:hover,
.support-chat-choice:focus-visible {
    background: #087B52;
    color: #FFFFFF;
    outline: none;
}

.support-chat-form input:disabled {
    background: #F7F6F2;
    color: #737D74;
    cursor: not-allowed;
}
