/* ============================================
   VOLTAX AUTH PAGES - SHARED STYLES
   Estilos compartilhados para páginas de autenticação
   (Login, Esqueceu Senha, Reset Senha, etc)
   ============================================ */

/* Reset and Base Styles */
.voltax-auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

/* Background with Image */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.auth-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(44, 62, 122, 0.85) 0%,
            rgba(30, 90, 142, 0.80) 25%,
            rgba(45, 122, 142, 0.75) 50%,
            rgba(61, 155, 122, 0.70) 75%,
            rgba(77, 184, 111, 0.65) 100%);
    z-index: 1;
}

.auth-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Auth Card with Glassmorphism */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    animation: slideUp 0.6s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo and Brand Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #4a90e2 0%, #50c878 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.logo-icon i {
    font-size: 36px;
    color: white;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e7a 0%, #3d9b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 2px;
    margin: 4px 0 0 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.welcome-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Info Message */
.info-message {
    background: rgba(74, 144, 226, 0.1);
    border-left: 4px solid #4a90e2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-message p {
    font-size: 14px;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

/* Success Message */
.success-message {
    background: rgba(80, 200, 120, 0.1);
    border-left: 4px solid #50c878;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.success-message p {
    font-size: 14px;
    color: #065f46;
    margin: 0;
    line-height: 1.5;
}

/* Alert Styles */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 18px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-success i {
    color: #10b981;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

.alert-info i {
    color: #3b82f6;
}

/* Back to Login */
.back-to-login {
    text-align: center;
    margin-top: 20px;
}


/* Form Styles */
.auth-form {
    margin-bottom: 24px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: #4a90e2;
}

.form-input.is-invalid {
    border-color: #ef4444;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-input:checked {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.checkbox-label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.forgot-link {
    font-size: 14px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #3d7ac2;
}

.back-link {
    font-size: 14px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: #3d7ac2;
}

.back-link i {
    font-size: 16px;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 16px;
    background-color: var(--bs-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(4px);
}

/* Footer Links */
.auth-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 24px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #4a90e2;
}

/* Copyright */
.copyright {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .brand-name {
        font-size: 28px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .auth-footer {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}