/* Authentication Pages Styles */

.auth-header {
    min-height: 40vh;
}

.auth-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.auth-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-toggle {
    display: flex;
    background: linear-gradient(90deg, #f5f5f5, #fafafa);
    border-bottom: 2px solid #e0e0e0;
}

.toggle-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    font-family: "Road Rage", sans-serif;
}

.toggle-btn.active {
    background: linear-gradient(180deg, #7ea87c, #66b37a);
    color: white;
    border-bottom: 3px solid #5a9f6d;
}

.toggle-btn:hover:not(.active) {
    background: #f0f0f0;
    color: #666;
}

.auth-form {
    padding: 2.5rem 2rem;
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    font-family: "Road Rage", sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7ea87c;
    box-shadow: 0 0 8px rgba(126, 168, 124, 0.2);
    background-color: rgba(126, 168, 124, 0.02);
}

.form-group input::placeholder {
    color: #bbb;
}

.auth-btn {
    background: linear-gradient(180deg, #7ea87c, #66b37a);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 0.5rem;
}

.auth-btn:hover {
    background: linear-gradient(180deg, #6dbc7e, #5a9f6d);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(70, 130, 90, 0.25);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(70, 130, 90, 0.15);
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
    padding: 1rem;
    border-radius: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.success-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .auth-form {
        padding: 2rem 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .toggle-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }
}
