
.main-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 64px;
    width: 100%;
    padding: 0 64px;
    margin: 0 0 64px;
    box-sizing: border-box;
}

.logo-container {
    position: relative;
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
}

.form-container {
    max-width: 500px;
    width: 100%;
}

.main-subcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.fields-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.account-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.forgot-password-container {
    width: 100%;
    text-align: end;
}

/* ==========================================================================
   Branding & Logo
   ========================================================================== */
.logo {
    width: 180px;
    height: auto;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */
/* Headings */
.heading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h2 {
    margin: 0;
    font-family: var(--_typography---font-styles--heading);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: var(--_primitives---colors--corvette-dark);
}

/* Paragraphs */
.paragraph-login-page {
    margin: 0;
    font-family: var(--_typography---font-styles--body);
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    text-align: center;
    color: var(--_primitives---colors--white);
}

/* Labels & Text */
.field-label,
.error-message,
.account-text {
    margin: 0;
    font-family: var(--_typography---font-styles--body);
    font-weight: 400;
    line-height: 160%;
    color: var(--_primitives---colors--white);
}

.field-label {
    font-size: 16px;
}

.error-message {
    text-align: center;
    margin-bottom: 15px;
    color: var(--_primitives---colors--sweet-pink);
}

.account-text {
    font-size: 16px;
    text-align: center;
}

/* ==========================================================================
   Form Inputs & Validation
   ========================================================================== */
/* Input Container */
.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Inputs */
.input-container input {
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    padding: 16px;
    border: 1px solid var(--_primitives---colors--masala);
    border-radius: 8px;
    background-color: transparent;
    color: var(--_primitives---colors--white);
    font-family: var(--_typography---font-styles--body);
    transition: all 0.3s;
    appearance: none;
    outline: none;
    font-size: 16px;
}

.input-container input:focus {
    border-color: var(--_primitives---colors--sinbad);
}

/* Placeholder Text */
.input-container input::placeholder {
    font-family: var(--_typography---font-styles--body);
    font-weight: 300;
    font-size: 16px;
    line-height: 160%;
    color: var(--_primitives---colors--neutral-light);
}

.input-container input:focus::placeholder {
    color: transparent;
}

/* Caps Lock Warning */
#caps-lock-status {
    display: none; /* initially hidden */
    width: 100%;
    padding: 5px 0;
    margin-top: 5px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--_primitives---colors--sweet-pink);
    background-color: var(--_primitives---colors--white);
    border-radius: 5px;
}

/* Toggle Password Visibility */
.toggle-password {
    position: absolute;
    top: calc(50% - 10px);
    right: 10px;
    width: 24px;
    display: block;
    cursor: pointer;
}

/* Forgot Password Link */
.forgot-password-link {
    font-family: var(--_typography---font-styles--body);
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: var(--_primitives---colors--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
/* Primary Buttons */
button {
    width: 100%;
    height: 48px;
    padding: 16px 32px;
    background: var(--_primitives---colors--sinbad);
    color: var(--_primitives---colors--neutral-darkest);
    font-family: var(--_typography---font-styles--body);
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    outline: none;
}

button:hover {
    background: var(--_primitives---colors--sinbad-dark);
}

/* Secondary Links */
.open-account-link {
    font-family: var(--_typography---font-styles--body);
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    color: var(--_primitives---colors--sinbad);
    text-decoration: none;
    transition: all 0.3s ease;
}

.open-account-link:hover {
    color: var(--_primitives---colors--sinbad-dark);
}

/* ==========================================================================
   Modal / Popup Overlay
   ========================================================================== */
/* Dark, semi-transparent background overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #14121180;
    backdrop-filter: blur(10px);
    z-index: 9998;
}

/* Popup container */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    padding: 32px 24px;
    background-color: var(--_primitives---colors--neutral-darker);
    border: 1px solid var(--_primitives---colors--masala);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.45);
    z-index: 9999;
}

/* Close button */
.popup-message .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: var(--_primitives---colors--white);
    transition: color 0.3s ease;
}

.popup-message .close-btn:hover {
    color: var(--_primitives---colors--sinbad);
}

/* Popup text */
.popup-message p {
    margin: 0;
    padding-right: 24px;
    font-family: var(--_typography---font-styles--body);
    font-weight: 300;
    font-size: 16px;
    line-height: 160%;
    text-align: center;
    color: var(--_primitives---colors--white);
}

@media screen and (max-width: 480px) {
    .popup-message {
        padding: 24px 20px;
    }

    .popup-message p {
        font-size: 14px;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablets and smaller laptops */
@media screen and (max-width: 992px) {
    .main-content-wrapper {
        padding: 0 40px;
        gap: 48px;
    }

    .form-container {
        width: 100%;
        max-width: 500px;
    }
}

/* Larger phones and small tablets */
@media screen and (max-width: 768px) {
    .main-content-wrapper {
        padding: 0 32px;
        gap: 40px;
        margin: 0 0 48px;
    }

    .heading-container h2 {
        font-size: 32px;
    }

    .paragraph-login-page {
        font-size: 16px;
    }
}

/* Phones */
@media screen and (max-width: 576px) {
    .main-content-wrapper {
        padding: 0 24px;
        gap: 32px;
        margin: 0 0 32px;
    }

    .logo {
        width: 140px;
    }

    .heading-container h2 {
        font-size: 28px;
    }

    .paragraph-login-page {
        font-size: 14px;
    }

    .input-container input {
        height: 50px;
        font-size: 16px;
        padding: 12px 16px;
    }

    .input-container input::placeholder {
        font-size: 13px;
    }

    .field-label {
        font-size: 14px;
    }

    button {
        height: 44px;
        padding: 12px 24px;
        font-size: 15px;
    }

    .account-text {
        font-size: 14px;
    }
}

/* Small phones */
@media screen and (max-width: 375px) {
    .main-content-wrapper {
        padding: 0 16px;
        gap: 24px;
    }

    .logo {
        width: 120px;
    }

    .heading-container h2 {
        font-size: 24px;
    }

    .input-container input {
        height: 46px;
        font-size: 15px;
        padding: 10px 14px;
    }

    .toggle-password {
        width: 20px;
    }

    button {
        height: 42px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .forgot-password-link, .open-account-link {
        font-size: 13px;
    }
}