/* Authentication form styles */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.auth-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.auth-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: var(--mtn-yellow);
    color: var(--text-dark);
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.btn-submit:hover {
    background: #e6b800;
}

.auth-link {
    margin-top: 1rem;
    display: block;
    color: var(--text-light);
}

.auth-link a {
    color: var(--info);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Success and Error Messages */
.alert {
    padding: 1rem;
    margin: 1rem auto;
    max-width: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-success {
    animation: slideDown 0.5s ease-out;
}

.auth-error {
    animation: slideDown 0.5s ease-out;
}

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

/* Form validation styles */
.form-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.validation-message.success {
    color: #28a745;
}

.validation-message.error {
    color: #dc3545;
}

/* Responsive styles for auth pages */
@media (max-width: 480px) {
    .auth-container {
        margin: 20px auto;
        padding: 1.5rem;
    }
    
    .auth-container h2 {
        font-size: 1.5rem;
    }
    
    .alert {
        margin: 0.5rem auto;
        padding: 0.75rem;
    }
}