/* auth.css - Depends on variables from base.css */

/* Center the content vertically and horizontally */
.auth-wrapper {
    min-height: 80vh; /* Leaves room for header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--lightest-gray); /* Slight contrast from white body */
}

/* The main container card */
.auth-card {
    background-color: var(--white);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(10, 25, 47, 0.1); /* Shadow using dark-blue tones */
    border: 1px solid var(--light-gray);
    text-align: center;
}

/* Headings */
.auth-card h2 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-card p.subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form Layout */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-blue);
}

/* Inputs */
.form-group input {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border: 2px solid var(--light-gray);
    background-color: var(--white);
    color: var(--dark-blue);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Input Focus - Using your Teal accent */
.form-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--light-teal);
}

/* Input Placeholders */
.form-group input::placeholder {
    color: var(--gray);
}

/* Submit Button - Matches your "Accent" style */
.btn-auth {
    margin-top: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    background-color: var(--pink); /* Your primary accent */
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover effect matches your header link behavior */
.btn-auth:hover {
    background-color: var(--teal);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 245, 212, 0.3); /* Teal glow */
}

/* Links (Forgot Password / Register) */
.auth-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

/* Reusing your gradient underline style from nav-menu */
.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--teal));
    transition: width 0.3s ease;
}

.auth-links a:hover {
    color: var(--pink);
}

.auth-links a:hover::after {
    width: 100%;
}

/* Error and Success States */
.message-error {
    background-color: var(--light-pink);
    color: var(--dark-pink);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--pink);
    margin-bottom: 1rem;
}

.message-success {
    background-color: var(--light-green-teal);
    color: var(--dark-green-teal);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--green-teal);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 1rem;
        align-items: flex-start; /* Move to top on small screens */
        padding-top: 3rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
    }
}

/* Inputs - Updated to catch Text, Email, and Password equally */
.form-group input {
    width: 100%; /* Ensures they fill the container */
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border: 2px solid var(--light-gray);
    background-color: var(--white);
    color: var(--dark-blue);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Ensure focus works for all of them */
.form-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--light-teal);
}