/* ===============================
   AUTH - Login, Register
   Style: Clean, Centered, Professional
================================ */

body.auth-page {
    /* Background image with a dark green tint overlay */
    background: linear-gradient(rgba(0, 61, 35, 0.85), rgba(0, 61, 35, 0.85)),
                url('../images/campus_background.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.main-container {
    max-width: 100%;
    width: auto; /* Let content dictate width */
}

/* AUTH HEADER (Logo + Text) */
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.auth-header .logo {
    width: 90px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.auth-header .title-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.auth-header .title-text hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.4);
    width: 60px;
    margin: 8px auto;
}

.auth-header .title-text p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* CARDS */
.login-card,
.register-card {
    background: var(--bg-main); /* Pure White */
    padding: 2.5rem; /* Spacious padding */
    border-radius: var(--radius-std); /* 4px */
    border: 1px solid var(--border-color); /* #C7CDD1 */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* Soft, professional shadow */
    width: 100%;
    position: relative;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specific Card Sizes */
.login-card {
    width: 420px;
    max-width: 95vw;
}

.register-card {
    width: 750px;
    max-width: 95vw;
}

.login-card h2,
.register-card h2 {
    color: var(--primary-action);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* FORM ELEMENTS - CLEAN & STACKED */
#loginForm, #registerForm, #completeProfileForm {
    width: 100%;
}

/* Register form grid layout for wider screens */
#registerForm {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px;
}

/* Make email, password, and buttons span full width in register form */
#registerForm .input-group:nth-child(3), /* Email usually 3rd */
#registerForm .button-container {
    grid-column: 1 / -1;
}

.input-group {
    display: flex;
    flex-direction: column; /* Stack label above input */
    margin-bottom: 1.25rem;
    width: 100%;
    text-align: left;
}

.input-group label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: #fff;
    border: 1px solid var(--border-color); /* #888 equivalent */
    border-radius: var(--radius-std); /* 4px */
    transition: all 0.2s ease;
    height: 44px; /* Comfortable touch target */
}

/* Focus state: DLSU Green glow */
.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-action);
    box-shadow: 0 0 0 3px rgba(0, 107, 61, 0.15);
}

.input-group input::placeholder {
    color: #ccc;
}

/* BUTTONS */
.btn-login,
.btn-register {
    width: 100%;
    background-color: var(--primary-action);
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-std); /* 4px */
    cursor: pointer;
    transition: background-color 0.2s;
    height: 44px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.btn-login:hover,
.btn-register:hover {
    background-color: var(--primary-hover);
}

.button-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

/* Google Button */
.google-button-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-std);
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    height: 44px;
}

.btn-google:hover {
    background-color: #f9f9f9;
}

.btn-google .google-g-logo {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Footer Links */
.help-links {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.help-links a {
    color: var(--primary-action);
    font-weight: 600;
    text-decoration: none;
}

.help-links a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .register-card {
        width: 100%;
        padding: 1.5rem;
    }
    
    #registerForm {
        grid-template-columns: 1fr; /* Stack inputs on mobile */
    }
    
    .auth-header .title-text h1 {
        font-size: 1.8rem;
    }
}
