/* =====================================================
   AUTH - Login e Registo
   ===================================================== */

.auth-section {
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 600px;
}

/* ==================== LADO VISUAL ==================== */
.auth-visual {
    background: linear-gradient(135deg, #1E3A8A 0%, #172554 100%);
    color: white;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 50%;
}

.auth-visual::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    margin-bottom: 30px;
}

.auth-visual h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
}

.auth-visual p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.auth-visual-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-visual-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.auth-visual-list li i {
    color: #F97316;
    font-size: 1.1rem;
}

/* ==================== LADO FORMULÁRIO ==================== */
.auth-form-side {
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    margin-bottom: 35px;
    text-align: center;
}

.auth-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #0F172A;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748B;
    font-size: 0.95rem;
    margin: 0;
}

.auth-header a {
    color: #F97316;
    font-weight: 600;
}

.auth-header a:hover {
    text-decoration: underline;
}

/* ==================== SELETOR DE TIPO ==================== */
.tipo-seletor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.tipo-opcao {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tipo-opcao input {
    display: none;
}

.tipo-opcao:hover {
    border-color: #CBD5E1;
}

.tipo-opcao.active {
    border-color: #1E3A8A;
    background: rgba(30, 58, 138, 0.05);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.1);
}

.tipo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tipo-opcao.active .tipo-icon {
    background: linear-gradient(135deg, #F97316, #FB923C);
}

.tipo-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.tipo-info strong {
    font-size: 0.9rem;
    color: #0F172A;
}

.tipo-info small {
    font-size: 0.75rem;
    color: #64748B;
}

/* ==================== FORMULÁRIO ==================== */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.auth-form .form-label i {
    color: #1E3A8A;
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.auth-form .obrigatorio {
    color: #EF4444;
    margin-left: 2px;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1E3A8A;
}

/* Força da senha */
.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.visible {
    display: block;
}

.strength-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #EF4444;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
}

/* Opções */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1E3A8A;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #1E3A8A;
    font-weight: 600;
}

.forgot-link {
    font-size: 0.85rem;
    color: #1E3A8A;
    font-weight: 600;
}

.forgot-link:hover {
    color: #F97316;
}

/* Botão grande */
.auth-form .btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
    margin-top: 5px;
}

/* Divisor */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #E2E8F0;
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background: white;
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Login social */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    transform: translateY(-2px);
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-visual {
        padding: 40px 30px;
        min-height: 280px;
    }
    
    .auth-visual h2 {
        font-size: 1.5rem;
    }
    
    .auth-visual p {
        font-size: 0.95rem;
    }
    
    .auth-visual-list {
        display: none;
    }
    
    .auth-form-side {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 40px 15px;
    }
    
    .auth-container {
        border-radius: 16px;
        min-height: auto;
    }
    
    .auth-visual {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .auth-visual h2 {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }
    
    .auth-form-side {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .tipo-seletor {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}