/* =====================================================
   CSS DA PÁGINA DE LOGIN
   Tático Suplementos
   ===================================================== */

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 0;
    margin-bottom: 40px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 14px;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #f4d03f;
}

.breadcrumb-nav i {
    color: #666;
    font-size: 12px;
}

/* Seção de Login */
.login-section {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Formulário de Login */
.login-form {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.form-header h1 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Grupos de Formulário */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 240, 55, 0.2);
}

.form-group input.error {
    border-color: #ff4757;
}

/* Input de Senha */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Mensagens de Erro */
.error-message {
    display: none;
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Opções do Formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Checkbox Personalizado */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #f4d03f;
    text-decoration: underline;
}

/* Botões de Ação */
.form-actions {
    text-align: center;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #fef037 0%, #f4d03f 100%);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #f0c419 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(254, 240, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Divisor */
.login-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    background: #fff;
    padding: 0 20px;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Login Social */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.btn-social i {
    font-size: 1.2rem;
}

/* Link para Cadastro */
.register-link {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.register-link p {
    color: #666;
    margin: 0;
}

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

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

/* Card de Benefícios */
.beneficios-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 40px;
    color: var(--text-dark);
    position: sticky;
    top: 20px;
    height: fit-content;
    border: 1px solid var(--bg-lighter);
}

.beneficios-header {
    text-align: center;
    margin-bottom: 40px;
}

.beneficios-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.beneficios-header h3 i {
    margin-right: 10px;
}

.beneficios-header p {
    color: var(--text-gray);
    margin: 0;
    font-size: 1rem;
}

/* Lista de Benefícios */
.beneficios-list {
    margin-bottom: 40px;
}

.beneficio-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.beneficio-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.beneficio-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fef037 0%, #f4d03f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.beneficio-icon i {
    color: #1a1a1a;
    font-size: 1.2rem;
}

.beneficio-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    font-family: 'Orbitron', sans-serif;
}

.beneficio-content p {
    color: var(--text-dark);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Informações de Segurança */
.seguranca-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--bg-lighter);
}

.seguranca-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
}

.seguranca-info h4 i {
    margin-right: 10px;
}

.seguranca-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seguranca-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.seguranca-info li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Modal de Erro */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header.error {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: #fff;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
}

.modal-header h3 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
}

/* Estados de Loading */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .beneficios-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .login-form {
        padding: 30px 20px;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .beneficios-card {
        padding: 30px 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 20px 0;
    }
    
    .login-form {
        padding: 20px 15px;
    }
    
    .beneficios-card {
        padding: 20px 15px;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .beneficio-item {
        flex-direction: column;
        text-align: center;
    }
    
    .beneficio-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form,
.beneficios-card {
    animation: fadeInUp 0.6s ease;
}

.beneficio-item {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.beneficio-item:nth-child(1) { animation-delay: 0.1s; }
.beneficio-item:nth-child(2) { animation-delay: 0.2s; }
.beneficio-item:nth-child(3) { animation-delay: 0.3s; }
.beneficio-item:nth-child(4) { animation-delay: 0.4s; }
.beneficio-item:nth-child(5) { animation-delay: 0.5s; }
.beneficio-item:nth-child(6) { animation-delay: 0.6s; }

/* Melhorias de Acessibilidade */
.form-group input:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Scrollbar Personalizada */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #f4d03f;
}

/* Toast de Notificação */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.toast.error {
    border-left: 4px solid #ff4757;
}

.toast.success {
    border-left: 4px solid var(--primary-color);
}

.toast i {
    font-size: 1.2rem;
}

.toast.error i {
    color: #ff4757;
}

.toast.success i {
    color: var(--primary-color);
}

.toast button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-left: auto;
}

.toast button:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} 