/* =====================================================
   RIDE APP - ESTILOS DE AUTENTICAÇÃO
   ===================================================== */

.auth-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    animation: slideUp 0.5s ease;
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
    font-size: 4rem;
    display: inline-block;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="date"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition);
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="date"]:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ===== Password Input Wrapper ===== */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: var(--transition);
}

.password-toggle:hover {
    opacity: 0.7;
}

/* ===== Forgot Password Link ===== */
.forgot-password-link {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== Auth Footer ===== */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--gray-color);
    margin-bottom: 0;
}

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

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== Alertas ===== */
#alertContainer {
    margin-bottom: 1.5rem;
}

#alertContainer .alert {
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

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

/* ===== Registro - Etapas ===== */
.register-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    flex: 1;
}

.step-indicator:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    border: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--gray-color);
    transition: var(--transition);
}

.step-indicator.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-indicator.completed .step-number {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-indicator.completed .step-number::after {
    content: '✓';
    position: absolute;
}

/* ===== Checkbox Customizado ===== */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--gray-color);
}

.form-check a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-check a:hover {
    text-decoration: underline;
}

/* ===== Responsividade ===== */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-logo .logo-icon {
        font-size: 3rem;
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
    }
    
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="date"],
    .auth-form select,
    .auth-form textarea {
        padding: 10px;
        font-size: 16px; /* Evita zoom em iOS */
    }
    
    .register-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-indicator:not(:last-child)::after {
        display: none;
    }
}
