body {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* For the caps lock alert if needed */
#caps-lock-status {
    display: none;
    text-align: center;
    color: red;
    font-size: 14px;
    margin-top: 5px;
    width: 100%;
    padding: 5px 0;
    border-radius: 5px;
    background-color: #FFCCCB;
}

html {
    position: relative;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Logo styling */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 240px;
    height: auto;
}

/* Main login container */
.container {
    position: relative;
    width: 430px;
    height: 502px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(27, 58, 26, 0.5) 0%, rgba(168, 204, 160, 0.5) 100%);
    box-shadow: 0 10px 30px 0 rgba(15, 31, 13, 0.36);
    border-radius: 8px;
}

/* Subcontainer for the login fields */
.main-subcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 381px;
    height: 385px;
}

/* Heading container */
.heading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Specific heading styling */
h2 {
    font-weight: 600;
    font-size: 41px; /* was 37.5px */
    margin-top: 0;
    margin-bottom: 4px;
    color: var(--brand-white); /* or #FFFFFF directly */
}

p {
    font-weight: 400;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Fields wrapper */
.fields-container {
    width: 100%;
    padding-top: 53px;
}

/* Input container */
.input-container {
    position: relative;
}

.input-container input {
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    padding-left: 10px;
    line-height: 14px;
    color: #FFFFFF;
    transition: box-shadow 0.3s;
    outline: none;
    background-color: #00000000;
    border-radius: 6px;
    border: 1px solid rgba(250, 249, 246, 0.3);
    font-size: 14px;
}

/* Add spacing between multiple inputs */
.input-container:not(:last-child) {
    margin-bottom: 23px;
}

.input-container input:focus {
    /* Use a variable for the focus shadow or brand color */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.input-container input::placeholder {
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: rgba(250, 249, 246, 0.3);
}

.input-container input:focus::placeholder {
    color: transparent; /* Hide placeholder on focus */
}

/* Forgot password link container */
.forgot-password-container {
    width: 100%;
    text-align: end;
}

.forgot-password-link {
    font-weight: 500;
    font-size: 12px;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    margin-top: 8px;
    width: 115px;
}

.forgot-password-link:hover {
    color: rgba(12, 12, 12, 0.8);
}

/* Toggle password eye icon */
.toggle-password {
    transform: translateY(-50%);
    cursor: pointer;
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 36px;
}

/* Login button */
button:not(.ok-btn-msg-invalid-cred) {
    width: 50%;
    height: 45px;
    background: var(--brand-button-bg);
    box-shadow: 0 0 8px var(--brand-box-shadow);
    border-radius: 35px;
    border: 1px solid transparent;
    color: #FFFFFF;
    font-size: 18px;
    line-height: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

/* Hover effect for the button */
button:hover:not(.ok-btn-msg-invalid-cred) {
    background: transparent;
    color: var(--brand-button-bg);
    border: 1px solid var(--brand-button-bg);
}

/* "Don’t have an account?" text */
.account-text {
    text-align: center;
    margin-top: 23px;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFFB2;
}

/* "Open account" link */
.open-account-link {
    font-weight: 600;
    color: #000000;
}

.open-account-link:hover {
    color: rgba(12, 12, 12, 0.8);
}

/* Mobile logo */
.logo-mobile {
    display: none;
}

/*PopUp msg notification for invalid cred.*/
.popup-overlay-msg-invalid-cred {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3); /* grayish overlay */
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    animation: fadeIn 0.3s ease-out;
}

.popup-overlay-msg-invalid-cred.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}
.popup-msg-invalid-cred,
.popup-msg-invalid-cred * {
    box-sizing: content-box !important;
}
.popup-msg-invalid-cred {
    width: 300px;
    height: 400px;
    background: linear-gradient(to bottom, #840807, #F26161);
    color: #EEF0ED;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px 30px 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideIn 0.4s ease-out;
    gap: 10px;
    z-index: 9999;
}

.popup-msg-invalid-cred dotlottie-player {
    width: 100%;
    max-width: 250px;
    margin-top: 10px;
}

.message-msg-invalid-cred {
    font-size: 25px;
    margin: 10px 0;
    line-height: 1.4;
    text-align: center;
}

.ok-btn-msg-invalid-cred {
    background-color: #f2f2f2;
    font-size: 20px;
    color: #F26161;
    font-weight: bold;
    border: none;
    padding: 15px 70px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto;
}

.ok-btn-msg-invalid-cred:hover {
    background-color: #e0e0e0;
}

.close-btn-msg-invalid-cred {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -70%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}


/* Responsive adjustments */
@media (max-width: 650px) {
    body {
        height: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container {
        width: 100%;
        height: auto;
        margin: auto;
        padding: 90px 30px 20px;
    }

    .logo {
        display: none;
    }

    .logo-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 140px;
        height: auto;
        margin: 20px;
    }

    .main-subcontainer, .heading-container {
        width: 100%;
    }

    h2 {
        font-size: 33px;
    }

    p {
        font-size: 15px;
    }

    .input-container input,
    button {
        font-size: 16px;
    }

    .button-container {
        margin-top: 23px;
    }

    .input-container input::placeholder {
        font-size: 12px;
    }
}