/* auth.css - Estilos para páginas de autenticação */

body {
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(14, 34, 56, 0.15);
    overflow: hidden;
    width: 940px;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    margin: 20px;
    transition: all 0.3s ease;
    border: none;
}

.auth-card:hover {
    box-shadow: 0 12px 40px rgba(14, 34, 56, 0.25);
    transform: translateY(-5px);
}

.auth-image {
    background: linear-gradient(135deg, #0e2238 0%, #1e4976 100%);
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 40px;
    position: relative;
}

.auth-form-container {
    width: 55%;
    padding: 48px;
}

.auth-headline {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0e2238;
}

.auth-subheadline {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 36px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > .form-control {
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.form-floating > .form-control:focus {
    border-color: #0e2238;
    box-shadow: 0 0 0 0.25rem rgba(14, 34, 56, 0.25);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.auth-btn {
    background: linear-gradient(135deg, #0e2238 0%, #1e4976 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    padding: 12px 0;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #0a1a2a 0%, #153a5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 34, 56, 0.3);
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    font-size: 14px;
}

.auth-options {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    position: relative;
}

.auth-options-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.auth-options-divider:before,
.auth-options-divider:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #dee2e6;
}

.auth-options-divider:before {
    left: 0;
}

.auth-options-divider:after {
    right: 0;
}

.auth-options-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #6c757d;
}

.social-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.auth-link {
    color: #0e2238;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: #1e4976;
    text-decoration: underline;
}

.auth-link.bold {
    font-weight: 500;
}

.animated-element {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.circle-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: white;
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: white;
    bottom: -30px;
    left: -30px;
}

.waves {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    opacity: 0.3;
}

.form-check-input:checked {
    background-color: #0e2238;
    border-color: #0e2238;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.4;
}

.auth-image-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-image-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.auth-image-subtitle {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 80%;
    text-align: center;
    line-height: 1.6;
}

/* Estilos específicos do logout */
.logout-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(14, 34, 56, 0.15);
    border: none;
    transition: all 0.3s ease;
    max-width: 450px;
    width: 100%;
}

.logout-card:hover {
    box-shadow: 0 12px 40px rgba(14, 34, 56, 0.25);
    transform: translateY(-5px);
}

.logout-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.logout-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.btn-logout-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-logout-confirm:hover {
    background: linear-gradient(135deg, #e55656 0%, #d84315 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
    color: white;
}

.btn-logout-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

.btn-logout-confirm:hover::before {
    left: 100%;
}

.btn-cancel {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

.user-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.user-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logout-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logout-security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsividade */
@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
    }
    
    .auth-image {
        width: 100%;
        height: 220px;
        padding: 30px;
    }
    
    .auth-form-container {
        width: 100%;
        padding: 40px 30px;
    }
    
    .logout-card {
        max-width: 400px;
        margin: 20px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        margin: 15px;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .auth-image {
        height: 180px;
        padding: 20px;
    }
    
    .logout-card {
        max-width: 350px;
        margin: 15px;
    }
    
    .logout-icon {
        width: 60px;
        height: 60px;
    }
}