/* Hide footer and header */
.footer, .header {
    display: none;
}

/* General Layout for Desktop */
.sign-in-container {
    display: flex;
    height: 100vh;
    width: 100%;
    flex-direction: row; /* Desktop layout remains left-right */
}

/* Left-Side (Desktop) */
.left-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex; /* Added */
    justify-content: center; /* Horizontally centers the text */
    align-items: center; /* Vertically centers the text */
}

.left-side::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #012a4aab, #012a4a);
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.text-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.text-overlay h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.text-overlay p {
    font-size: 18px;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

/* Right-Side (Desktop) */
.right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 40px 20px;
}

#formTitle {
    color: #333;
}

/* Sign-In Box Styling */
.sign-in-box {
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

/* Google Sign-In Button Update */
.google-signin-button {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(65, 150, 224, 0.5);
    transition: background-color 0.3s ease-in-out;
    width: 100%;
    justify-content: center;
}

.google-signin-button:hover {
    background-color: #357ae8;
}

.google-signin-button i {
    margin-right: 10px;
}

/* "OR" Divider Styling */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.divider span {
    padding: 0 10px;
    background-color: #ffffff;
    color: #666;
    z-index: 1;
    font-size: 14px;
        color: #4196e0; /* Adjust divider color */

}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    z-index: 0;
}

/* Sign-In Form Styling */
#emailPasswordForm input {
    padding: 12px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    color: #333;
    margin-bottom: 10px;
}

/* Gradient border and shadow for focus */
#emailPasswordForm input:focus {
    border-color: #7bc0e8;
    box-shadow: 0 0 5px rgba(65, 150, 224, 0.5); /* Soft gradient color shadow */
    outline: none;
}

/* Gradient Button styling */
.email-signin-button {
    background-image: linear-gradient(135deg, #a2e7ee 0%, #7bc0e8 50%, #4196e0 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(65, 150, 224, 0.5);
}

.email-signin-button:hover {
    background-image: linear-gradient(135deg, #7bc0e8 0%, #4196e0 50%, #1c69b3 100%);
    box-shadow: 0 2px 8px rgba(65, 150, 224, 0.7); /* Darker shadow on hover */
}


/* Toggle Text Styling */
#toggleText {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Adjust hover and focus text color for toggle links */
#toggleText a {
    color: #4196e0;
    text-decoration: none;
}

#toggleText a:hover {
    color: #1c69b3;
    text-decoration: underline;
}
/* Modal Styling (Hidden by Default) */
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    color: #fefefe;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Modal content button gradient styling */
.modal-content button {
    background-image: linear-gradient(135deg, #a2e7ee 0%, #7bc0e8 50%, #4196e0 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.modal-content button:hover {
    background-image: linear-gradient(135deg, #7bc0e8 0%, #4196e0 50%, #1c69b3 100%);
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
/* Modal close button color change */
.close-button:hover,
.close-button:focus {
    color: #a2e7ee;
}

#displayNameInput {
        line-height: 30px;
    margin-bottom: 10px;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .sign-in-container {
        flex-direction: column; /* Change to top-bottom layout */
        height: auto; /* Allow the entire page to scroll naturally */
    }

    .left-side {
        min-height: 50vh; /* Set top section to take up 50% of the viewport height */
        position: relative;
        display: flex; /* Flexbox for centering */
        justify-content: center;
        align-items: center; /* Vertically center the text overlay */
    }

    .right-side {
        width: 100%;
        min-height: 50vh; /* Ensure the right side takes enough space, but content dictates overall height */
        display: flex;
        align-items: flex-start; /* Align content to the top */
        justify-content: center;
        padding: 20px;
    }

    .text-overlay h1 {
        font-size: 24px;
    }

    .text-overlay p {
        font-size: 14px;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content input[type="text"] {
        font-size: 16px;
    }

}

/* ===== Forgot / reset password ===== */
#forgotPasswordText {
    margin-top: 14px;
    font-size: 14px;
}

#forgotPasswordText a,
#backToSignInText a {
    color: #4196e0;
    text-decoration: none;
}

#forgotPasswordText a:hover,
#backToSignInText a:hover {
    color: #1c69b3;
    text-decoration: underline;
}

#resetTitle {
    color: #333;
}

.reset-help {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.reset-input {
    padding: 12px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    color: #333;
    margin-bottom: 10px;
}

.reset-input:focus {
    border-color: #7bc0e8;
    box-shadow: 0 0 5px rgba(65, 150, 224, 0.5);
    outline: none;
}

.reset-status {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 14px;
}

#backToSignInText {
    margin-top: 18px;
    font-size: 14px;
}
