/* --- Signup/Login Page Specific Styles --- */
/* --- Base Variables --- */
:root {
    --color-navy: #1F2D5A;
    --color-dark-blue: #1A2238; /* A slightly darker variation for text */
    --color-teal: #0ED2F7;
    --color-cyan: #1ABC9C; /* Alternative accent */
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-gray: #525151;
    --color-dark-gray: #575555;
    --color-red: #e74c3c; /* For error messages */
    --color-green: #2ecc71; /* For success messages/icons */

    --font-primary: 'Poppins', sans-serif;
}
body.auth-page::before {
    content: '';
    position: fixed; /* Use fixed so it covers the whole viewport, even if you scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/background-image.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2; 
    filter: blur(80px);
    transform: scale(1.02); 
}
body.auth-page::after {
    content: '';
    position: fixed;  
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 9.8); 
    z-index: -1; 
}
/* --- Global Resets & Body Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body { /* Ensure html and body take full height */
    height: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark-blue);
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-teal);
}

ul {
    list-style: none;
}

/* --- Buttons (General Styles) --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-teal);
    color: var(--color-white);
    border: 2px solid var(--color-teal);
}

.btn-primary:hover {
    background-color: #0cbbd9; /* Slightly darker teal */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    background-color: var(--color-light-gray); /* Light gray background for auth pages */
    padding: 20px; /* General padding */
}

.auth-container {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px; /* Max width for the form container */
    text-align: center;
     position: relative; /* ADD THIS LINE */
    overflow: hidden;   /* ADD THIS LINE */
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header .logo img {
    height: 170px; /* Larger logo for auth pages */
    margin-bottom: -50px;
    margin-top: -50px;
}

.auth-divider {
    width: 60px; /* Short line */
    height: 3px;
    background-color: var(--color-teal);
    border: none;
    margin: 0 auto; /* Center the line */
}

.auth-heading {
    margin-bottom: 30px;
    margin-top: -30px;
}

.auth-heading h2 {
    font-size: 2em;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.auth-heading p {
    font-size: 1em;
    color: var(--color-dark-gray);
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left; /* Align labels and inputs to the left */
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark-blue);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid ;
    border-radius: 8px;
    border-color: black;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(14, 210, 247, 0.2); /* Teal glow on focus */
}

.auth-form .error-message {
    color: var(--color-red);
    font-size: 0.85em;
    margin-top: 5px;
    display: block; /* Ensure it takes its own line */
    height: 1.2em; /* Reserve space to prevent layout shifts */
}

.auth-form .checkbox-group {
    display: flex;
    align-items: flex-start; /* Align checkbox and text */
    gap: 10px;
    margin-bottom: 25px;
}

.auth-form .checkbox-group input[type="checkbox"] {
    margin-top: 4px; /* Align with text baseline */
    min-width: 16px; /* Ensure checkbox is visible */
    min-height: 16px;
    cursor: pointer;
}

.auth-form .checkbox-group label {
    margin-bottom: 0; /* Override default label margin */
    font-weight: 400;
    font-size: 0.95em;
    color: var(--color-dark-gray);
}

.auth-form .checkbox-group .text-link {
    font-weight: 600;
}

.full-width-btn {
    width: 100%;
    padding: 15px 25px; /* Slightly larger padding for main button */
    font-size: 1.1em;
    color: white;
    background-color: black;
}

.full-width-btn:hover{
  cursor: pointer;
}
.full-width-btn:active{
  color: black;
  background-color: white;
}

/* ReCAPTCHA Section */
.recaptcha-section {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    background-color: var(--color-light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.recaptcha-section.hidden {
    display: none;
}

.recaptcha-text {
    font-size: 1.1em;
    color: var(--color-navy);
    font-weight: 600;
}

.recaptcha-subtext {
    font-size: 0.9em;
    color: var(--color-dark-gray);
    margin-bottom: 10px;
}

.recaptcha-placeholder {
    width: 80px;
    height: 80px;
    border: 4px solid var(--color-teal);
    border-top-color: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* Hide overflow of spinner/icon */
}

/* Spinner Animation */
.spinner {
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-teal); /* Use teal for spinner */
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recaptcha-success-icon {
    font-size: 3.5em; /* Large checkmark */
    color: var(--color-green);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Start scaled down */
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.recaptcha-success-icon.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.recaptcha-status {
    font-weight: 600;
    color: var(--color-navy);
}

/* Auth Footer Link */
.auth-footer-link {
    margin-top: 30px;
    font-size: 0.95em;
    color: var(--color-dark-gray);
}

.auth-footer-link .text-link {
    font-weight: 600;
}


/* --- Mobile Responsiveness for Auth Pages --- */
@media (max-width: 468px) {
    .auth-page {
        padding: 15px;
    }
    .auth-container {
        padding: 25px;
    }
    
    .auth-heading h2 {
        font-size: 1.8em;
    }
    .auth-heading p {
        font-size: 0.9em;
    }
    .auth-form input {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
      max-width: 380px;
    }
    .auth-form .checkbox-group label {
        font-size: 0.85em;
    }
    .full-width-btn {
        padding: 12px 20px;
        font-size: 1em;   
    }
    .recaptcha-text {
        font-size: 1em;
    }
    .recaptcha-subtext {
        font-size: 0.8em;
    }
    .recaptcha-placeholder {
        width: 60px;
        height: 60px;
    }
    .recaptcha-success-icon {
        font-size: 2.5em;
    }
    .auth-footer-link {
        font-size: 0.85em;
    }
}
