* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

body {
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    /* MoodMate purple gradient */
    background: linear-gradient(
        135deg,
        #6C63FF 0%,
        #8B5CF6 50%,
        #B794F4 100%
    );
}


/* ==========================================
   LOGIN CONTAINER
========================================== */

.container {
    width: 1000px;
    height: 600px;

    background: #ffffff;

    display: flex;

    border-radius: 25px;
    overflow: hidden;

    box-shadow:
        0 20px 40px rgba(49, 38, 92, 0.25);
}


/* ==========================================
   LEFT / WELCOME PANEL
========================================== */

.left {
    width: 50%;

    background: url("../assets/images/login-bg.jpg");

    background-size: cover;
    background-position: center;

    position: relative;
}


/* Purple overlay instead of dark gray */

.overlay {
    position: absolute;

    width: 100%;
    height: 100%;

    background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.88),
    rgba(139, 92, 246, 0.82)
);

    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 50px;

    color: white;

    text-align: center;
}


.overlay h1 {
    font-size: 42px;
    margin-bottom: 20px;
}


.overlay p {
    line-height: 1.8;
    color: #F7F3FF;
}

/* ==========================================
   RIGHT LOGIN PANEL
========================================== */

.right {
    width: 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 40px;

    background: #ffffff;
}


form {
    width: 100%;
}


form h2 {
    text-align: center;

    margin-bottom: 40px;

    color: #4C3A8A;
}


/* ==========================================
   INPUTS
========================================== */

.inputBox {
    position: relative;

    margin-bottom: 25px;
}


.inputBox input {
    width: 100%;

    padding: 15px 45px;

    border: 1px solid #E2E0F0;

    background: #F3F1FF;

    border-radius: 40px;

    outline: none;

    font-size: 16px;

    color: #333;

    transition: 0.25s;
}


.inputBox input:focus {
    border-color: #8B5CF6;

    background: #F8F6FF;

    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.12);
}


.inputBox i {
    position: absolute;

    left: 18px;
    top: 17px;

    color: #7C6CFF;
}


#togglePassword {
    position: absolute;

    right: 20px;
    top: 17px;

    cursor: pointer;

    color: #777;
}


/* ==========================================
   LOGIN BUTTON
========================================== */

button {
    width: 100%;

    padding: 15px;

    background: #6C63FF;

    color: white;

    border: none;

    border-radius: 40px;

    font-size: 17px;

    cursor: pointer;

    transition: 0.3s;

    margin-top: 20px;

    box-shadow:
        0 8px 18px rgba(108, 99, 255, 0.25);
}


button:hover {
    background: #584EF5;

    transform: translateY(-1px);
}


/* ==========================================
   LINKS
========================================== */

a {
    text-decoration: none;

    color: #6C63FF;
}


a:hover {
    color: #584EF5;
}


/* ==========================================
   TEXT
========================================== */

p {
    margin-top: 30px;

    text-align: center;
}


.subtitle {
    color: #777;

    margin-bottom: 30px;

    text-align: center;
}


.bottom-text {
    text-align: center;

    margin-top: 25px;

    color: #666;
}


.bottom-text a {
    color: #6C63FF;

    text-decoration: none;

    font-weight: 600;
}


.bottom-text a:hover {
    text-decoration: underline;
}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 900px) {

    body {
        min-height: 100vh;
        height: auto;

        padding: 20px;

        background: linear-gradient(
            135deg,
            #6C63FF,
            #8B5CF6
        );
    }


    .container {
        width: 100%;
        max-width: 500px;

        height: auto;
        min-height: 0;

        flex-direction: column;

        border-radius: 20px;
    }


    .left {
        display: none;
    }


    .right {
        width: 100%;

        padding: 30px 20px;
    }


    form {
        width: 100%;
    }


    form h2 {
        font-size: 26px;

        margin-bottom: 28px;
    }


    .inputBox input {
        font-size: 15px;

        padding: 14px 44px;
    }


    button {
        padding: 14px;

        font-size: 16px;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    body {
        padding: 12px;

        background: linear-gradient(
            135deg,
            #6C63FF,
            #8B5CF6
        );
    }


    .container {
        width: 100%;

        border-radius: 16px;
    }


    .right {
        padding: 25px 16px;
    }


    form h2 {
        font-size: 23px;

        margin-bottom: 24px;
    }


    .inputBox {
        margin-bottom: 18px;
    }


    .inputBox input {
        height: 50px;

        font-size: 14px;
    }


    button {
        height: 50px;

        font-size: 15px;
    }


    .subtitle {
        font-size: 13px;
    }


    .bottom-text {
        font-size: 13px;
    }
}
/* ==========================================
   MOODMATE LOGIN LOGO
========================================== */

.loginLogo {
    width: 350px;
    height: auto;

    object-fit: contain;

    margin-bottom: 25px;

    display: block;
}


/* ==========================================
   WELCOME TITLE
========================================== */

.overlay h1 {
    color: #E9DDFF;

    font-size: 42px;
    font-weight: 700;

    margin-bottom: 20px;

    text-shadow:
        0 3px 10px rgba(60, 35, 120, 0.18);
}
/* ==========================================
   MOODMATE LOGIN PANEL COLORS
========================================== */

.right {
    background: #FFFFFF;
}


/* Login title */

.right h2 {
    color: #4C3A8A;
}


/* Subtitle */

.right .subtitle {
    color: #77718A;
}


/* Input fields */

.right .inputBox input {
    background: #F1EEFF;
    border: 1px solid #DDD6F5;
    color: #302A45;
}

.right .inputBox input::placeholder {
    color: #8A8499;
}


/* Input icons */

.right .inputBox > i {
    color: #7C6CFF;
}


/* Password eye */

.right #togglePassword {
    color: #7C6CFF;
}


/* Links */

.right a {
    color: #6C63FF;
}

.right a:hover {
    color: #584EF5;
}


/* Login button */

.right button {
    background: #6C63FF;
    box-shadow: 0 8px 18px rgba(108, 99, 255, 0.25);
}

.right button:hover {
    background: #584EF5;
}


/* Bottom signup text */

.right .signup-text {
    color: #666273;
}
/* ==========================================
   MOBILE LOGIN
========================================== */

@media (max-width: 900px) {

    body {
        min-height: 100vh;
        height: auto;
        padding: 20px 15px;

        display: flex;
        justify-content: center;
        align-items: flex-start;

        background: linear-gradient(
            135deg,
            #6C63FF 0%,
            #8B5CF6 50%,
            #B794F4 100%
        );
    }

    .container {
        width: 100%;
        max-width: 520px;
        height: auto;

        display: flex;
        flex-direction: column;

        border-radius: 22px;
        overflow: hidden;
    }


    /* ==========================================
       WELCOME SECTION
    ========================================== */

    .overlay {
        position: relative;

        width: 100%;
        height: auto;

        min-height: 300px;

        padding: 35px 20px;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: center;

        text-align: center;

        background:
            linear-gradient(
                135deg,
                rgba(108, 99, 255, 0.92),
                rgba(139, 92, 246, 0.88)
            );
    }


    .loginLogo {
        width: 180px;
        height: auto;

        margin-bottom: 20px;
    }


    .overlay h1 {
        font-size: 32px;
        margin-bottom: 15px;

        color: #E9DDFF;
    }


    .overlay p {
        font-size: 14px;
        line-height: 1.7;

        margin-top: 0;

        color: #ffffff;
    }


    /* ==========================================
       LOGIN SECTION
    ========================================== */

    .right {
        width: 100%;

        padding: 35px 25px;

        background: #ffffff;
    }


    form {
        width: 100%;
    }


    form h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }


    .inputBox {
        margin-bottom: 20px;
    }


    .inputBox input {
        font-size: 15px;
        padding: 14px 44px;
    }


    button {
        padding: 14px;
        font-size: 16px;
    }

}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 480px) {

    body {
        padding: 12px 10px;
    }


    .container {
        width: 100%;

        border-radius: 18px;
    }


    .overlay {
        min-height: 270px;

        padding: 28px 18px;
    }


    .loginLogo {
        width: 150px;

        margin-bottom: 15px;
    }


    .overlay h1 {
        font-size: 28px;

        margin-bottom: 12px;
    }


    .overlay p {
        font-size: 12px;
        line-height: 1.6;
    }


    .right {
        padding: 28px 18px;
    }


    form h2 {
        font-size: 24px;
        margin-bottom: 22px;
    }


    .inputBox {
        margin-bottom: 18px;
    }


    .inputBox input {
        height: 50px;
        font-size: 14px;
    }


    button {
        height: 50px;
        font-size: 15px;
    }


    .subtitle {
        font-size: 13px;
    }


    .bottom-text {
        font-size: 13px;
    }

}
/* ==========================================
   MOODMATE CUSTOM MODAL
========================================== */

.mood-modal {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: none;

    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(30, 20, 60, 0.55);

    backdrop-filter: blur(5px);

    z-index: 9999;
}


.mood-modal.show {

    display: flex;

    animation: modalFadeIn 0.2s ease;
}


/* ==========================================
   MODAL CARD
========================================== */

.mood-modal-card {

    width: 100%;

    max-width: 390px;

    background: #ffffff;

    border-radius: 24px;

    padding: 30px 28px;

    text-align: center;

    box-shadow:
        0 25px 60px rgba(49, 38, 92, 0.30);

    transform: translateY(0);

    animation: modalSlideUp 0.25s ease;
}


/* ==========================================
   LOGO
========================================== */

.mood-modal-logo {

    display: flex;

    justify-content: center;

    align-items: center;

    margin-bottom: 10px;
}


.mood-modal-logo img {

    width: 150px;

    height: auto;

    display: block;

    object-fit: contain;
}


/* ==========================================
   ICON
========================================== */

.modal-icon {

    width: 55px;

    height: 55px;

    margin: 5px auto 15px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background: #F0ECFF;

    color: #6C63FF;

    font-size: 25px;
}


/* SUCCESS */

.mood-modal.success .modal-icon {

    background: #EEE9FF;

    color: #6C63FF;
}


/* ERROR */

.mood-modal.error .modal-icon {

    background: #FFF0F0;

    color: #E05252;
}


/* INFO */

.mood-modal.info .modal-icon {

    background: #F0ECFF;

    color: #6C63FF;
}


/* ==========================================
   TITLE
========================================== */

#moodModal h3 {

    margin-bottom: 10px;

    color: #4C3A8A;

    font-size: 23px;

    font-weight: 600;
}


/* ==========================================
   MESSAGE
========================================== */

#moodModal p {

    margin: 0;

    color: #666;

    font-size: 14px;

    line-height: 1.6;
}


/* ==========================================
   BUTTON
========================================== */

.modal-actions {

    margin-top: 24px;
}


.modal-ok-btn {

    width: 100%;

    padding: 13px 20px;

    border: none;

    border-radius: 40px;

    background: #6C63FF;

    color: #ffffff;

    font-family: Poppins, sans-serif;

    font-size: 15px;

    font-weight: 500;

    cursor: pointer;

    margin: 0;

    box-shadow:
        0 8px 18px rgba(108, 99, 255, 0.22);

    transition: 0.25s;
}


.modal-ok-btn:hover {

    background: #584EF5;

    transform: translateY(-1px);
}


/* ==========================================
   ANIMATIONS
========================================== */

@keyframes modalFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes modalSlideUp {

    from {

        opacity: 0;

        transform: translateY(15px) scale(0.97);

    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 480px) {

    .mood-modal {

        padding: 16px;
    }


    .mood-modal-card {

        max-width: 350px;

        padding: 26px 20px;

        border-radius: 20px;
    }


    .mood-modal-logo img {

        width: 130px;
    }


    .modal-icon {

        width: 50px;

        height: 50px;

        font-size: 22px;
    }


    #moodModal h3 {

        font-size: 21px;
    }


    #moodModal p {

        font-size: 13px;
    }

}
/* ==========================================
   MOODMATE CUSTOM POPUP
========================================== */

.moodmateModal {

    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    visibility: hidden;

    opacity: 0;

    z-index: 9999;

    transition: opacity 0.25s ease,
                visibility 0.25s ease;

}


.moodmateModal.show {

    visibility: visible;

    opacity: 1;

}


/* ==========================================
   BACKGROUND OVERLAY
========================================== */

.moodmateModalOverlay {

    position: absolute;

    inset: 0;

    background: rgba(5, 10, 20, 0.72);

    backdrop-filter: blur(6px);

}


/* ==========================================
   MODAL CARD
========================================== */

.moodmateModalCard {

    position: relative;

    z-index: 2;

    width: 90%;

    max-width: 420px;

    padding: 32px 28px;

    background: #1f2b40;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);

    transform: scale(0.9);

    transition: transform 0.25s ease;

}


.moodmateModal.show .moodmateModalCard {

    transform: scale(1);

}


/* ==========================================
   CLOSE BUTTON
========================================== */

.modalCloseBtn {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 32px;

    height: 32px;

    padding: 0;

    margin: 0;

    border: none;

    background: transparent;

    color: #cbd5e1;

    font-size: 18px;

    cursor: pointer;

}


.modalCloseBtn:hover {

    color: white;

    background: rgba(255, 255, 255, 0.08);

}


/* ==========================================
   ICON
========================================== */

.modalIcon {

    width: 58px;

    height: 58px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 25px;

    background: rgba(108, 99, 255, 0.18);

    color: #6c63ff;

}


/* ==========================================
   TITLE
========================================== */

.modalTitle,
#moodmateModal h2 {

    margin: 0 0 10px;

    color: white;

    font-size: 22px;

    font-weight: 600;

}


/* ==========================================
   MESSAGE
========================================== */

.modalMessage,
#moodmateModal p {

    margin: 0 auto 24px;

    color: #cbd5e1;

    font-size: 14px;

    line-height: 1.6;

    max-width: 340px;

}


/* ==========================================
   BUTTONS
========================================== */

.modalButtons {

    display: flex;

    justify-content: center;

    gap: 12px;

}


.modalButtons.single {

    justify-content: center;

}


.modalCancelBtn,
.modalConfirmBtn {

    min-width: 90px;

    padding: 11px 22px;

    border: none;

    border-radius: 30px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;

}


.modalConfirmBtn {

    background: #6c63ff;

    color: white;

}


.modalConfirmBtn:hover {

    background: #5147f5;

    transform: translateY(-1px);

}


.modalCancelBtn {

    background: #334155;

    color: white;

}


.modalCancelBtn:hover {

    background: #475569;

}


/* ==========================================
   SUCCESS
========================================== */

.moodmateModal.success .modalIcon {

    background: rgba(34, 197, 94, 0.15);

    color: #22c55e;

}


/* ==========================================
   ERROR
========================================== */

.moodmateModal.error .modalIcon {

    background: rgba(239, 68, 68, 0.15);

    color: #ef4444;

}


/* ==========================================
   WARNING
========================================== */

.moodmateModal.warning .modalIcon {

    background: rgba(245, 158, 11, 0.15);

    color: #f59e0b;

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .moodmateModalCard {

        width: calc(100% - 32px);

        max-width: 380px;

        padding: 28px 20px;

        border-radius: 18px;

    }


    .modalIcon {

        width: 52px;

        height: 52px;

        font-size: 22px;

    }


    #moodmateModal h2 {

        font-size: 20px;

    }


    #moodmateModal p {

        font-size: 13px;

    }


    .modalButtons {

        width: 100%;

    }


    .modalConfirmBtn,
    .modalCancelBtn {

        flex: 1;

        padding: 12px 16px;

    }

}
/* ==========================================
   MOODMATE CUSTOM MODAL
========================================== */

.moodmateModal {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 99999;

}


.moodmateModal.show {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ==========================================
   OVERLAY
========================================== */

.moodmateModalOverlay {

    position: absolute;

    inset: 0;

    background:
        rgba(5, 10, 25, 0.65);

    backdrop-filter:
        blur(6px);

}


/* ==========================================
   MODAL CARD
========================================== */

.moodmateModalCard {

    position: relative;

    width: min(
        90%,
        420px
    );

    padding: 35px 30px 30px;

    border-radius: 20px;

    background:
        #202b40;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.35);

    text-align: center;

    transform:
        scale(0.85);

    transition:
        transform 0.25s ease;

    z-index: 1;

}


.moodmateModal.show
.moodmateModalCard {

    transform:
        scale(1);

}


/* ==========================================
   CLOSE BUTTON
========================================== */

.modalCloseBtn {

    position: absolute;

    top: 12px;

    right: 14px;

    width: 32px;

    height: 32px;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

}


/* ==========================================
   ICON
========================================== */

.modalIcon {

    width: 58px;

    height: 58px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

}


/* SUCCESS */

.moodmateModal.success
.modalIcon {

    background:
        rgba(34, 197, 94, 0.18);

    color:
        #22c55e;

}


/* ERROR */

.moodmateModal.error
.modalIcon {

    background:
        rgba(239, 68, 68, 0.18);

    color:
        #ef4444;

}


/* WARNING */

.moodmateModal.warning
.modalIcon {

    background:
        rgba(245, 158, 11, 0.18);

    color:
        #f59e0b;

}


/* INFO */

.moodmateModal.info
.modalIcon {

    background:
        rgba(99, 102, 241, 0.18);

    color:
        #818cf8;

}


/* ==========================================
   TITLE
========================================== */

.moodmateModalCard h2 {

    margin:
        0 0 10px;

    color:
        #ffffff;

    font-size:
        22px;

    font-weight:
        700;

}


/* ==========================================
   MESSAGE
========================================== */

.moodmateModalCard p {

    margin:
        0 auto 25px;

    max-width:
        340px;

    color:
        #cbd5e1;

    font-size:
        14px;

    line-height:
        1.6;

}


/* ==========================================
   BUTTON AREA
========================================== */

.modalButtons {

    display:
        flex;

    justify-content:
        center;

    gap:
        10px;

}


/* ==========================================
   OK BUTTON
========================================== */

.modalConfirmBtn {

    min-width:
        90px;

    padding:
        11px 25px;

    border:
        none;

    border-radius:
        10px;

    background:
        #6c5ce7;

    color:
        #ffffff;

    font-family:
        "Poppins",
        sans-serif;

    font-size:
        14px;

    font-weight:
        600;

    cursor:
        pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;

}


.modalConfirmBtn:hover {

    transform:
        translateY(-2px);

    opacity:
        0.9;

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .moodmateModalCard {

        width:
            calc(100% - 40px);

        padding:
            32px 22px 25px;

        border-radius:
            18px;

    }

    .moodmateModalCard h2 {

        font-size:
            20px;

    }

    .moodmateModalCard p {

        font-size:
            13px;

    }

}