/* =========================================================
   ROOT
========================================================= */

:root {

    --primary-gradient-dark:
        linear-gradient(
            90deg,
            #004437,
            #072a4d
        );

    --primary-gradient-dark-reverse:
        linear-gradient(
            270deg,
            #004437,
            #072a4d
        );

    --primary-green:
        #006b54;

    --primary-blue:
        #0f4c81;
}


/* =========================================================
   GLOBAL
========================================================= */

html,
body {

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
}


body {

    font-family:
        'Nunito',
        Arial,
        Helvetica,
        sans-serif;

    background:
        #fff;

    color:
        var(--primary-blue);

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    overflow: hidden;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {

    flex: 1;

    width: 100%;

    min-height: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 15px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.card-login {

    background:
        #ffffff;

    width:
        100%;

    max-width:
        440px;

    padding:
        2rem 2.25rem;

    border:
        1px solid
        rgba(0, 68, 55, 0.12);

    border-radius:
        12px;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.20);

    color:
        var(--primary-blue);

    font-size:
        1.05rem;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.card-login:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 16px 35px
        rgba(0, 0, 0, 0.24);
}


/* =========================================================
   LOGIN LOGO & HEADERS
========================================================= */

.card-login .logo {

    display:
        block;

    width:
        100%;

    max-width:
        235px;

    height:
        auto;

    margin:
        0 auto 1.25rem auto;
}


.survey-title {

    color:
        var(--primary-blue);

    font-weight:
        800;

    font-size:
        1.35rem;

    letter-spacing:
        0.5px;
}


.survey-instructions {

    font-size:
        1rem;

    line-height:
        1.55;

    color:
        #444444;
}


.contact-person {

    font-size:
        1.05rem;

    font-weight:
        700;

    color:
        var(--primary-blue);
}


/* =========================================================
   FORM LABELS
========================================================= */

.card-login .form-label {

    color:
        var(--primary-blue);

    font-weight:
        700;

    font-size:
        1rem;

    margin-bottom:
        6px;
}


/* =========================================================
   FORM INPUTS
========================================================= */

.form-control {

    min-height:
        48px;

    border-radius:
        6px;

    border:
        1px solid
        rgba(0, 68, 55, 0.18);

    color:
        var(--primary-blue);

    font-size:
        1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-control:focus {

    border-color:
        var(--primary-green);

    box-shadow:
        0 0 0 0.15rem
        rgba(0, 107, 84, 0.10);
}


.form-control::placeholder {

    color:
        #9aa3a8;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.toggle-pass {

    cursor:
        pointer;

    min-width:
        48px;

    background:
        #ffffff;

    border:
        1px solid
        rgba(0, 68, 55, 0.18);

    border-left:
        none;

    border-radius:
        0 6px 6px 0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    user-select:
        none;
}


.toggle-pass i {

    color:
        #6c757d;

    font-size:
        1.15rem;

    transition:
        color 0.2s ease;
}


.toggle-pass:hover i {

    color:
        var(--primary-green);
}


.toggle-pass.active i {

    color:
        var(--primary-blue);
}


/* =========================================================
   REMEMBER ME
========================================================= */

.form-check {

    margin-bottom:
        0;
}


.form-check-input {

    border-color:
        rgba(0, 68, 55, 0.25);

    cursor:
        pointer;
}


.form-check-input:checked {

    background-color:
        var(--primary-green);

    border-color:
        var(--primary-green);
}


.form-check-input:focus {

    border-color:
        var(--primary-green);

    box-shadow:
        0 0 0 0.15rem
        rgba(0, 107, 84, 0.10);
}


.form-check-label {

    color:
        var(--primary-blue);

    font-size:
        0.9rem;

    cursor:
        pointer;
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

#btn-forgot-password {

    color:
        var(--primary-blue);

    font-size:
        0.9rem;

    white-space:
        nowrap;

    text-decoration:
        none;
}


#btn-forgot-password:hover {

    color:
        var(--primary-green);

    text-decoration:
        underline;
}


/* =========================================================
   SIGN IN BUTTON
========================================================= */

.btn-gradient {

    width:
        100%;

    min-height:
        48px;

    padding:
        0.65rem 1rem;

    background:
        var(--primary-gradient-dark);

    border:
        none;

    border-radius:
        6px;

    color:
        #ffffff !important;

    font-size:
        1.05rem;

    font-weight:
        700;

    box-shadow:
        0 4px 10px
        rgba(0, 68, 55, 0.18);

    transition:
        all 0.2s ease;
}


.btn-gradient:hover {

    color:
        #ffffff !important;

    transform:
        translateY(-1px);

    box-shadow:
        0 6px 14px
        rgba(15, 76, 129, 0.22);
}


.btn-gradient:active {

    transform:
        translateY(0);
}


/* =========================================================
   SIGN UP LINK
========================================================= */

.card-login .text-center p {

    margin:
        0;

    color:
        var(--primary-blue);

    font-size:
        0.92rem;
}


#btn-modal-signup {

    color:
        var(--primary-green);

    text-decoration:
        none;
}


#btn-modal-signup:hover {

    color:
        var(--primary-blue);

    text-decoration:
        underline;
}


/* =========================================================
   MODAL
========================================================= */

.modal-content {

    background:
        #ffffff;

    border:
        1px solid
        rgba(0, 68, 55, 0.12);

    border-radius:
        12px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);

    color:
        var(--primary-blue);
}


.modal-header {

    background:
        var(--primary-gradient-dark);

    color:
        #ffffff;

    border-bottom:
        none;

    border-radius:
        11px 11px 0 0;
}


.modal-title {

    font-weight:
        700;

    font-size:
        1.25rem;
}


.modal-body {

    max-height:
        70vh;

    overflow-y:
        auto;

    color:
        var(--primary-blue);

    font-size:
        0.98rem;
}


/* =========================================================
   MODAL LABELS
========================================================= */

.modal-body label {

    display:
        block;

    margin-bottom:
        5px;

    color:
        var(--primary-blue);

    font-size:
        0.95rem;

    font-weight:
        600;
}


/* =========================================================
   WARNING ICON
========================================================= */

.warning-icon {

    position:
        absolute;

    right:
        10px;

    top:
        50%;

    transform:
        translateY(-50%);

    width:
        20px;

    height:
        20px;

    background:
        #dc3545;

    color:
        #ffffff;

    border-radius:
        50%;

    text-align:
        center;

    line-height:
        20px;

    font-size:
        13px;

    font-weight:
        bold;

    pointer-events:
        none;

    z-index:
        5;
}


/* =========================================================
   GENERAL LINKS
========================================================= */

a {

    transition:
        color 0.2s ease;
}


/* =========================================================
   FOOTER
========================================================= */

footer {

    width:
        100%;

    flex-shrink:
        0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .login-page {

        padding:
            10px;
    }


    .card-login {

        max-width:
            390px;

        padding:
            1.5rem 1.35rem;

        border-radius:
            10px;

        font-size:
            0.95rem;
    }


    .card-login .logo {

        max-width:
            200px;

        margin-bottom:
            1rem;
    }


    .card-login .form-label {

        font-size:
            0.9rem;
    }


    .form-control {

        min-height:
            42px;

        font-size:
            0.92rem;
    }


    .btn-gradient {

        min-height:
            42px;

        font-size:
            0.95rem;
    }


    #btn-forgot-password,
    .form-check-label {

        font-size:
            0.82rem;
    }


    .card-login .text-center p {

        font-size:
            0.84rem;
    }
}


/* =========================================================
   SHORT SCREEN
========================================================= */

@media (max-height: 650px) {

    .login-page {

        padding:
            8px;
    }


    .card-login {

        max-width:
            410px;

        padding:
            1.15rem 1.4rem;
    }


    .card-login .logo {

        max-width:
            180px;

        margin-bottom:
            0.75rem;
    }


    .card-login .mb-3 {

        margin-bottom:
            0.55rem !important;
    }


    .btn-gradient {

        margin-bottom:
            0.65rem !important;
    }
}



/* =========================================================
   SEASONAL THEME: HALLOWEEN (OCT 20 - NOV 02)
   Only active when the PHP date condition adds .season-halloween.
   The default DEBS green/blue theme remains unchanged year-round.
========================================================= */

body.season-halloween {
    --primary-green: #e87518;
    --primary-blue: #39235f;
    --primary-gradient-dark: linear-gradient(110deg, #e87518 0%, #7b2cbf 55%, #39235f 100%);
    --primary-gradient-dark-reverse: linear-gradient(250deg, #e87518 0%, #7b2cbf 55%, #39235f 100%);

    background:
        radial-gradient(ellipse at 12% 18%, rgba(255, 126, 24, 0.32), transparent 22%),
        radial-gradient(ellipse at 88% 24%, rgba(120, 42, 180, 0.38), transparent 28%),
        radial-gradient(ellipse at 72% 92%, rgba(255, 91, 20, 0.16), transparent 30%),
        radial-gradient(ellipse at 50% 120%, rgba(7, 5, 12, 0.88), transparent 52%),
        linear-gradient(145deg, #0b0812 0%, #21102f 42%, #35152f 72%, #100a13 100%);
    background-attachment: fixed;
    background-color: #100a13;
    color: #fff7ed;
    position: relative;
}

body.season-halloween .card-login {
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid rgba(255, 169, 76, 0.38);
    border-top: 4px solid #e87518;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
}

body.season-halloween .card-login:hover {
    box-shadow: 0 20px 44px rgba(57, 35, 95, 0.22);
}

body.season-halloween .survey-title,
body.season-halloween .contact-person,
body.season-halloween .card-login .form-label,
body.season-halloween .form-check-label,
body.season-halloween #btn-forgot-password,
body.season-halloween .card-login .text-center p {
    color: #39235f;
}

body.season-halloween .form-control,
body.season-halloween .toggle-pass {
    border-color: rgba(57, 35, 95, 0.22);
}

body.season-halloween .form-control:focus,
body.season-halloween .form-check-input:focus {
    border-color: #e87518;
    box-shadow: 0 0 0 0.16rem rgba(232, 117, 24, 0.18);
}

body.season-halloween .toggle-pass:hover i,
body.season-halloween #btn-forgot-password:hover,
body.season-halloween #btn-modal-signup {
    color: #e87518;
}

body.season-halloween .form-check-input:checked {
    background-color: #e87518;
    border-color: #e87518;
}

body.season-halloween .btn-gradient {
    background: linear-gradient(110deg, #e87518 0%, #7b2cbf 58%, #39235f 100%);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(123, 44, 191, 0.22);
}

body.season-halloween .btn-gradient:hover {
    box-shadow: 0 9px 20px rgba(123, 44, 191, 0.30);
}

body.season-halloween .modal-content {
    background: #fffaf4;
    border: 1px solid rgba(232, 117, 24, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

body.season-halloween .modal-header {
    background: linear-gradient(110deg, #e87518 0%, #7b2cbf 58%, #39235f 100%);
}

body.season-halloween .modal-body h6 {
    color: #7b2cbf;
    font-weight: 800;
}

/* A small seasonal accent that does not cover or obstruct the login form. */
body.season-halloween .card-login::after {
    content: "✦  🎃  ✦";
    display: block;
    margin-top: 1.15rem;
    color: #e87518;
    font-size: 0.9rem;
    letter-spacing: 0.18rem;
    text-align: center;
    opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
    body.season-halloween .card-login,
    body.season-halloween .btn-gradient {
        transition: none;
    }
}


/* Theme reset control */
.theme-reset-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1050;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(35, 22, 52, 0.88);
    color: #fff7ed;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.theme-reset-btn:hover {
    background: #e87518;
}

body:not(.season-halloween):not(.season-christmas) .theme-reset-btn {
    background: #006b54;
    border-color: rgba(0, 107, 84, 0.25);
}

body.season-halloween .theme-reset-btn {
    background: #7b2cbf;
    color: #fff;
}

body.season-christmas .theme-reset-btn {
    background: #a51d2d;
    color: #fff;
}

@media (max-width: 576px) {
    .theme-reset-btn {
        top: 10px;
        right: 10px;
        padding: 8px 11px;
        font-size: 0.78rem;
    }
}


body.season-halloween::before {
    content: "✦  ☾  ✦";
    position: fixed;
    top: 7%;
    left: 5%;
    color: rgba(255, 153, 51, 0.34);
    font-size: clamp(1.4rem, 3vw, 2.8rem);
    letter-spacing: 1.2rem;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(232, 117, 24, 0.25);
}

body.season-halloween::after {
    content: "🦇";
    position: fixed;
    right: 7%;
    bottom: 7%;
    font-size: clamp(2rem, 5vw, 4.2rem);
    opacity: 0.24;
    transform: rotate(-12deg);
    pointer-events: none;
}

body.season-halloween .card-login {
    position: relative;
    z-index: 1;
}











/* Add this below your existing CSS.
   This only adds a glowing moon on the right. */

body.season-halloween {
    position: relative;
    overflow-x: hidden;
}

body.season-halloween .halloween-moon {
    position: fixed;
    top: 45px;
    right: 55px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff4c2;
    box-shadow:
        0 0 15px rgba(255, 244, 194, 0.8),
        0 0 35px rgba(255, 244, 194, 0.6),
        0 0 70px rgba(255, 244, 194, 0.35);
    pointer-events: none;
    z-index: 0;
    animation: moon-glow 4s ease-in-out infinite alternate;
}

@keyframes moon-glow {
    from {
        box-shadow:
            0 0 15px rgba(255, 244, 194, 0.7),
            0 0 35px rgba(255, 244, 194, 0.4),
            0 0 60px rgba(255, 244, 194, 0.2);
    }

    to {
        box-shadow:
            0 0 25px rgba(255, 244, 194, 1),
            0 0 50px rgba(255, 244, 194, 0.7),
            0 0 90px rgba(255, 244, 194, 0.4);
    }
}






/* =========================================================
   SEASONAL THEME: CHRISTMAS (NOV 20 - JAN 01)
   Only active when PHP adds .season-christmas to body.
========================================================= */

body.season-christmas {
    --primary-green: #087443;
    --primary-blue: #a51d2d;

    --primary-gradient-dark:
        linear-gradient(110deg, #087443 0%, #0b5938 50%, #a51d2d 100%);

    --primary-gradient-dark-reverse:
        linear-gradient(250deg, #087443 0%, #0b5938 50%, #a51d2d 100%);

    background:
        radial-gradient(ellipse at 12% 15%, rgba(255, 215, 120, 0.25), transparent 25%),
        radial-gradient(ellipse at 88% 20%, rgba(255, 255, 255, 0.25), transparent 25%),
        radial-gradient(ellipse at 50% 100%, rgba(8, 116, 67, 0.35), transparent 45%),
        linear-gradient(145deg, #071f18 0%, #0b5137 45%, #8b1727 100%);

    background-attachment: fixed;
    background-color: #071f18;
    color: #fffaf0;
    position: relative;
    overflow-x: hidden;
}

/* =========================================================
   LOGIN CARD
========================================================= */

body.season-christmas .card-login {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(218, 165, 32, 0.45);
    border-top: 5px solid #c49a32;
    border-radius: 16px;

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(255, 215, 120, 0.12);

    backdrop-filter: blur(8px);
}

body.season-christmas .card-login:hover {
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.38),
        0 0 30px rgba(255, 215, 120, 0.20);
}

/* =========================================================
   HEADINGS AND LABELS
========================================================= */

body.season-christmas .survey-title,
body.season-christmas .contact-person,
body.season-christmas .card-login .form-label,
body.season-christmas .form-check-label,
body.season-christmas #btn-forgot-password,
body.season-christmas .card-login .text-center p {
    color: #a51d2d;
}

/* =========================================================
   FORM INPUTS
========================================================= */

body.season-christmas .form-control,
body.season-christmas .toggle-pass {
    border-color: rgba(8, 116, 67, 0.30);
}

body.season-christmas .form-control:focus,
body.season-christmas .form-check-input:focus {
    border-color: #087443;

    box-shadow:
        0 0 0 0.16rem rgba(8, 116, 67, 0.18);
}

/* =========================================================
   PASSWORD TOGGLE AND LINKS
========================================================= */

body.season-christmas .toggle-pass:hover i,
body.season-christmas #btn-forgot-password:hover,
body.season-christmas #btn-modal-signup {
    color: #087443;
}

body.season-christmas #btn-modal-signup:hover {
    color: #a51d2d;
}

/* =========================================================
   CHECKBOX
========================================================= */

body.season-christmas .form-check-input:checked {
    background-color: #087443;
    border-color: #087443;
}

/* =========================================================
   SIGN IN BUTTON
========================================================= */

body.season-christmas .btn-gradient {
    background:
        linear-gradient(
            110deg,
            #087443 0%,
            #0b5938 50%,
            #a51d2d 100%
        );

    border-radius: 8px;

    box-shadow:
        0 6px 15px rgba(8, 116, 67, 0.25);
}

body.season-christmas .btn-gradient:hover {
    background:
        linear-gradient(
            110deg,
            #0b5938 0%,
            #a51d2d 100%
        );

    box-shadow:
        0 9px 22px rgba(165, 29, 45, 0.30);
}

/* =========================================================
   MODALS
========================================================= */

body.season-christmas .modal-content {
    background: #fffdf7;
    border: 1px solid rgba(218, 165, 32, 0.40);

    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.35);
}

body.season-christmas .modal-header {
    background:
        linear-gradient(
            110deg,
            #087443 0%,
            #0b5938 50%,
            #a51d2d 100%
        );
}

body.season-christmas .modal-body h6 {
    color: #087443;
    font-weight: 800;
}

/* =========================================================
   CHRISTMAS CARD DECORATION
========================================================= */

body.season-christmas .card-login {
    position: relative;
    z-index: 1;
}

body.season-christmas .card-login::after {
    content: "❄  🎄  ✨  🎁  ❄";

    display: block;
    margin-top: 1.15rem;

    color: #087443;
    font-size: 1rem;
    letter-spacing: 0.12rem;
    text-align: center;

    opacity: 0.90;
}

/* =========================================================
   CHRISTMAS BACKGROUND DECORATIONS
========================================================= */

body.season-christmas::before {
    content: "❄       ✦       ❄";

    position: fixed;
    top: 7%;
    left: 5%;

    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    letter-spacing: 1.2rem;

    pointer-events: none;

    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.40);

    animation: christmas-sparkle 4s ease-in-out infinite alternate;
}

body.season-christmas::after {
    content: "🎄";

    position: fixed;
    right: 6%;
    bottom: 5%;

    font-size: clamp(3rem, 7vw, 5.5rem);
    opacity: 0.30;

    pointer-events: none;

    animation: christmas-glow 4s ease-in-out infinite alternate;
}

/* =========================================================
   CHRISTMAS ANIMATIONS
========================================================= */

@keyframes christmas-sparkle {
    from {
        opacity: 0.45;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(8px);
    }
}

@keyframes christmas-glow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }

    to {
        filter: drop-shadow(0 0 18px rgba(255, 215, 120, 0.7));
    }
}

/* =========================================================
   THEME RESET BUTTON
========================================================= */

body.season-christmas .theme-reset-btn {
    background: rgba(165, 29, 45, 0.92);
    color: #ffffff;

    border: 1px solid rgba(255, 215, 120, 0.55);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.25);
}

body.season-christmas .theme-reset-btn:hover {
    background: #087443;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    body.season-christmas::before {
        top: 4%;
        left: 3%;
        font-size: 1.3rem;
    }

    body.season-christmas::after {
        right: 3%;
        bottom: 3%;
        font-size: 3rem;
    }

    body.season-christmas .card-login {
        border-radius: 12px;
    }

    body.season-christmas .card-login::after {
        font-size: 0.85rem;
    }

}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    body.season-christmas::before,
    body.season-christmas::after {
        animation: none;
    }

    body.season-christmas .card-login,
    body.season-christmas .btn-gradient {
        transition: none;
    }

}





