/* --- Global Resets & Font --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #1a1a1a;
}

/* --- Main Layout Container --- */
.container {
    display: flex;
    min-height: 100vh;
}

/* --- 1. Left Info Panel (Dark) --- */
.info-panel {
    flex: 1;
    background: #000;
    color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-panel .logo-main {
    font-size: 3rem;
    font-weight: bold;
}

.info-panel .subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    margin-top: 1rem;
}

.info-panel .mission {
    font-size: 1rem;
    margin-top: 1.5rem;
    line-height: 1.6;
    max-width: 400px;
    color: #f0f0f0;
}

/* --- Updated Logo Footer Styles --- */
.info-panel .logo-footer {
    display: block;
    width: 48px;  /* Set a container width for your logo */
    height: 48px; /* Set a container height for your logo */
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.info-panel .logo-footer:hover {
    opacity: 1;
}

.info-panel .logo-footer img {
    width: 100%;  /* Makes the image fill the container's width */
    height: 100%; /* Makes the image fill the container's height */
    object-fit: contain; /* Ensures your logo scales properly */
}

/* --- 2. Right Login Panel (Light) --- */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* --- Form Styling --- */
form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #c948ff;
    box-shadow: 0 0 0 3px rgba(201, 72, 255, 0.2);
}

/* --- Error Message --- */
.error {
    background: #fde8e8;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #f9c5c5;
}

/* --- Submit Button (with Gradient) --- */
.login-button {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(to right, #b224ef, #f953c6);
    transition: opacity 0.2s;
}

.login-button:hover {
    opacity: 0.9;
}

/* --- Register Link --- */
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #555;
}

.register-link a {
    color: #e53535; /* Red from image */
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    /* Hide the info panel on mobile */
    .info-panel {
        display: none; 
    }

    .login-panel {
        width: 100%;
        min-height: 100vh;
        align-items: flex-start; /* Align form to top */
        padding: 2.5rem 1.5rem; /* More padding */
    }

    .login-box {
        max-width: 100%;
    }
}