* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0b0f14;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.layout-container {
    display: flex;
    flex: 1;
    width: 100%;
    /* max-width removed to span the entire screen */
    margin: 0;
}

/* Left Section */
.left-section {
    width: 65%;
    display: flex;
    justify-content: center;
    align-items: center; /* Center horizontally */
    position: relative;
    background-color: #0b0f14; /* Keep original very dark */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Right Section */
.right-section {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #1f1f22; /* Updated to requested hex */
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: left;
    color: #ffffff;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: 1px solid #363636;
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #555;
}

.input-group input::placeholder {
    color: #888;
}

.login-button {
    background: #113a5d;
    color: #638abf;
    border: none;
    border-radius: 24px;
    padding: 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, color 0.2s;
}

.login-button:hover {
    background: #1e4b78;
}

/* Active class dynamically appended via JS when exactly >= 6 characters */
.login-button.active-btn {
    background: #1967D2;
    color: white;
}

.forgot-password-container {
    margin: 24px 0 40px;
    text-align: center;
}

.forgot-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.facebook-btn {
    border: 1px solid #363636;
    border-radius: 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: transparent;
}

.create-account-btn {
    border: 1px solid #1877f2;
    border-radius: 24px;
    padding: 16px;
    text-align: center;
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: transparent;
}

.meta-logo-container {
    margin-top: 10px; /* Adjust this value to push it up or down */
    text-align: center;
    color: #a8a8a8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meta-logo {
    height: 50px; /* Adjust this value to make the logo larger or smaller */
    width: auto;
    opacity: 0.9; /* Makes it blend slightly better with the dark theme */
}

/* Footer */
.footer {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #8e8e8e;
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1000px;
    padding: 0 20px;
}

.footer-links a {
    color: #8e8e8e;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .layout-container {
        flex-direction: column;
    }
    .left-section, .right-section {
        width: 100%;
        padding: 20px;
    }
    .left-section {
        align-items: center;
        text-align: center;
    }
    .left-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .image-stack {
        transform: scale(0.8);
    }
    .main-heading {
        font-size: 32px;
    }
}

/* Custom Alert Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-box {
    background-color: #262626; /* Match the dark theme */
    width: 280px;
    border-radius: 14px;
    text-align: center;
    padding-top: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.modal-message {
    font-size: 14px;
    color: #a8a8a8;
    margin: 0 20px 20px;
    line-height: 1.4;
}

.modal-divider {
    height: 1px;
    background: #363636;
    width: 100%;
}

.modal-ok-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #3b82f6; /* Matching the 'Create new account' blue color */
    font-size: 16px;
    font-weight: 600;
    padding: 14px;
    cursor: pointer;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    transition: background 0.2s;
}

.modal-ok-btn:active {
    background: rgba(255, 255, 255, 0.05);
}
