/* ===========================================
   AUTH PAGES - CSS Compartilhado
   Login, Forgot Password, Reset Password
   =========================================== */

/* Wrapper Principal */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--theme-primary, #1e3a5f) 0%, var(--theme-secondary, #2563eb) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card Principal */
.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header {
    background: white;
    padding: 20px 20px 0px 0px;
    text-align: center;
}

.auth-logo {
    max-width: 320px;
    width: 90%;
    height: auto;
    margin-bottom: 15px;
}

.auth-body {
    background: white;
    padding: 20px 30px 30px;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* Formulários */
.auth-body .form-label {
    font-weight: 600;
    color: var(--theme-primary, #1e3a5f);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-body .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.auth-body .input-group-text {
    background: var(--theme-primary, #1e3a5f);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 10px 0 0 10px;
}

.auth-body .form-control {
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 0 10px 10px 0;
}

.auth-body .form-control:focus {
    border-color: var(--theme-accent, #c9a227);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.auth-body .form-text {
    color: #6b7280;
    font-size: 0.8rem;
}

.auth-body .info-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Botões */
.btn-auth-primary {
    background: var(--theme-primary, #1e3a5f);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    color: white;
    transition: all 0.3s;
}

.btn-auth-primary:hover {
    background: var(--theme-secondary, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.4);
    color: white;
}

.btn-auth-accent {
    background: var(--theme-accent, #c9a227);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    color: var(--theme-primary, #1e3a5f);
    transition: all 0.3s;
}

.btn-auth-accent:hover {
    background: #b8922a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.4);
    color: var(--theme-primary, #1e3a5f);
}

/* Links */
.auth-link {
    color: var(--theme-accent, #c9a227);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-link:hover {
    color: var(--theme-primary, #1e3a5f);
    text-decoration: underline;
}

.back-link {
    color: var(--theme-primary, #1e3a5f);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: var(--theme-accent, #c9a227);
}

/* Alertas */
.auth-body .alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    border: none;
}

.auth-body .alert-danger {
    background: #fee2e2;
    color: var(--theme-danger, #8b2332);
}

.auth-body .alert-success {
    background: #d1fae5;
    color: #065f46;
}

/* Validação */
.auth-body .invalid-feedback {
    display: none;
    color: var(--theme-danger, #8b2332);
    font-size: 0.85rem;
    margin-top: 5px;
}

.auth-body .form-control.is-invalid {
    border-color: var(--theme-danger, #8b2332);
}

.auth-body .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Mobile First */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 15px;
    }
    
    .auth-card {
        border-radius: 16px;
    }
    
    .auth-header {
        padding: 25px 15px 15px;
    }
    
    .auth-logo {
        max-width: 260px;
    }
    
    .auth-body {
        padding: 15px 20px 25px;
    }
    
    .auth-body .form-control,
    .auth-body .input-group-text {
        padding: 10px 14px;
    }
    
    .btn-auth-primary,
    .btn-auth-accent {
        padding: 12px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .auth-logo {
        max-width: 280px;
    }
}
