/* Resetting default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

html, body {
    height: 100%;
}

.container {
    display: flex;
    min-height: 100vh;
    height: auto;
    transition: all 0.3s ease; /* Smooth transition */
}

/* Left Section */
.left-section {
    flex: 1;
    background-color: #1a237e;
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideInLeft 0.5s; /* Animation */
}

.logo h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.intro-text {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.intro-text h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.intro-text p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.intro-text .welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
    text-align: center; /* Ensure the welcome text is centered */
}

.illustration {
    margin-bottom: 40px;
    text-align: center;
}

.illustration-img {
    max-width: 100%;
    height: auto;
}

.login-as {
    text-align: center;
    font-size: 20px;
}

.login-as h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.login-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    margin-top: 20px; /* Add some space above the buttons */
}

.login-option {
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 10px; /* Add margin for spacing */
    padding: 10px 20px; /* Add padding to make it look like a button */
    background-color: #1a237e; /* Button background color */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack image and text */
    align-items: center; /* Center items */
}

.login-option img {
    width: 40px; /* Adjust icon size */
    height: 40px; /* Adjust icon size */
    margin-bottom: 5px; /* Space between image and text */
}

.login-option:hover {
    background-color: #0d47a1; /* Darker shade on hover */
}

/* Right Section */
.right-section {
    flex: 1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.5s; /* Animation */
}

.welcome-container {
    width: 80%;
    max-width: 400px;
    text-align: center; /* Center text */
    border: 2px solid #1a237e; /* Add border */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding inside the container */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease; /* Smooth transition */
}

.welcome-container:hover {
    transform: scale(1.05); /* Scale effect on hover */
}

.welcome-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.school-name {
    color: #1a237e;
}

.welcome-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.google-btn {
    display: flex;
    align-items: center;
    background-color: #f1f3f4;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px; /* Space between button and icons */
    transition: background-color 0.3s; /* Smooth transition */
}

.google-btn:hover {
    background-color: #e0e0e0; /* Change color on hover */
}

.google-btn img {
    width: 20px;
    margin-right: 0.5rem;
}

.social-icons {
    display: flex; /* Align icons in a row */
    justify-content: center; /* Center icons */
}

.social-icons a {
    color: #1a73e8;
    font-size: 1.5rem;
    margin-left: 1rem; /* Space between icons */
    text-decoration: none;
}

.welcome-message {
    margin-top: 20px;
    font-size: 1rem;
    color: #666; /* Subtle color for the message */
}

/* Quote Styling */
.welcome-quote {
    margin-top: 20px;
    font-size: 1.1rem;
    font-style: italic; /* Italic style for the quote */
    color: #333; /* Darker color for the quote */
    border-left: 4px solid #1a237e; /* Left border for the quote */
    padding-left: 10px; /* Space between border and text */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack sections vertically */
        height: auto; /* Allow height to adjust */
    }

    .left-section, .right-section {
        width: 100%; /* Full width for both sections */
        padding: 20px; /* Add padding for smaller screens */
    }

    .welcome-container {
        width: 90%; /* Adjust welcome container width */
    }

    .intro-text h1 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }

    .intro-text p {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    .login-option img {
        width: 50px; /* Adjust icon size */
        height: 50px; /* Adjust icon size */
    }

    .welcome-container h1 {
        font-size: 1.2rem; /* Adjust heading size */
    }

    .welcome-container h2 {
        font-size: 1.5rem; /* Adjust subheading size */
    }

    .google-btn {
        width: 100%; /* Full width for the button */
    }

    .left-section {
        padding: 1rem; /* Reduce padding for smaller screens */
    }

    .intro-text h1 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }

    .intro-text p {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    .login-option img {
        width: 50px; /* Adjust icon size */
        height: 50px; /* Adjust icon size */
    }

    .login-as {
        font-size: 18px; /* Adjust font size */
    }

    .login-options {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        align-items: center; /* Center buttons */
    }

    .login-option {
        width: 80%; /* Full width for buttons on smaller screens */
        margin: 10px 0; /* Space between buttons */
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Logo */
.navbar-logo {
    width: 50px !important; /* Force the width to apply */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between logo and text */
}

.logo-text {
    font-size: 1.5rem; /* Adjust font size */
    color: #1B3C74; /* Dark blue color */
    font-weight: bold; /* Make the text bold */    
}

.navbar-brand {
    display: flex;
    align-items: center; /* Center the logo vertically */
}

.social-login {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    margin-bottom: 20px; /* Space below the social login section */
}

/* Logo styling for login page */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
    margin-left: 20px;
}

.logo h2.logo-text {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.logo .logo-subtext {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.logo img.navbar-logo {
    width: 80px;  /* Increased size */
    height: auto;
    margin-right: 15px;
    /* Add subtle glow effect for better visibility */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.logo h2.logo-text {
    font-size: 2rem;  /* Increased size */
    color: #ffffff;   /* Changed to white for better contrast */
    font-weight: bold;
    margin: 0;
    /* Add text shadow for better readability */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;  /* Better line height for multiline text */
}

/* Optional: Add hover effect */
.logo:hover img.navbar-logo {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
    transition: filter 0.3s ease;
}

/* Navigation Links */
.nav-links {
    position: absolute;
    top: 20px;
    right: 20px;
}

.home-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f8f9fa;
    color: #007bff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.home-link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

.home-link i {
    margin-right: 8px;
}

/* Additional Links */
.additional-links {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text from wrapping inside button */
}

.btn-explore:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

.btn-explore i {
    margin-right: 10px;
}

/* Updated responsive design section */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section, .right-section {
        width: 100%;
        min-height: auto;
        padding: 1rem;
    }

    .logo {
        padding: 15px;
        margin: 10px;
    }

    .logo h2.logo-text {
        font-size: 1.8rem;
    }

    .logo .logo-subtext {
        font-size: 1rem;
    }

    .intro-text {
        padding: 10px;
    }

    .intro-text h1 {
        font-size: 1.6rem;
    }

    .intro-text p {
        font-size: 0.9rem;
    }

    .illustration {
        margin: 20px 0;
    }

    .illustration-img {
        max-width: 80%;
    }

    .login-options {
        flex-direction: row;
        gap: 10px;
        padding: 0 10px;
    }

    .login-option {
        width: 45%;
        padding: 8px;
        margin: 5px;
    }

    .login-option img {
        width: 30px;
        height: 30px;
    }

    .welcome-container {
        width: 95%;
        margin: 15px auto;
        padding: 15px;
    }

    .welcome-container h1 {
        font-size: 1.2rem;
    }

    .welcome-quote {
        font-size: 0.9rem;
        margin: 15px 0;
    }

    .btn-explore {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Add styles for even smaller screens */
@media (max-width: 480px) {
    .login-options {
        flex-direction: column;
    }

    .login-option {
        width: 100%;
        margin: 5px 0;
    }

    .welcome-container {
        padding: 10px;
    }

    .logo h2.logo-text {
        font-size: 1.5rem;
    }

    .additional-links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-explore {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
}
