/* Multi-Step Registration Form */
.step-container {
    max-width: 600px;
    min-height: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Logo específica para registro */
.step-container .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.step-container .logo .logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.step-container .logo p {
    margin: 0;
    text-align: center;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.5s ease;
    z-index: 2;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #a0a0a0;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.step-label {
    font-size: 12px;
    color: #a0a0a0;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
    position: absolute;
    bottom: -25px;
    white-space: nowrap;
}

.step-item.active .step-number {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.step-item.active .step-label {
    color: #667eea;
}

.step-item.completed .step-number {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 16px;
}

.step-item.completed .step-label {
    color: #4caf50;
}

/* Step Content */
.step-content {
    min-height: 350px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

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

/* Step specific styles */
.step-1 {
    text-align: center;
}

.cpf-validation {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.cpf-validation.loading {
    display: block;
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #bbdefb;
}

.cpf-validation.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #c8e6c9;
}

.cpf-validation.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ffcdd2;
}

.nome-automatico {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50 !important;
    color: #c8e6c9 !important;
}

/* Navigation buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-step {
    flex: 1;
    max-width: 150px;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Terms step */
.terms-content {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.terms-content h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.terms-content p {
    margin-bottom: 10px;
}

/* Success step */
.step-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    color: #4caf50;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success-message h3 {
    color: #4caf50;
    margin-bottom: 15px;
}

.success-message p {
    color: #a0a0a0;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .step-container {
        min-height: 450px;
    }
    
    .progress-bar {
        margin-bottom: 30px;
    }
    
    .step-item {
        width: 50px;
        height: 50px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 10px;
        bottom: -20px;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .btn-step {
        max-width: none;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Field Feedback Styles */
.field-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    min-height: 24px;
}

.field-feedback.loading {
    display: block;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #90caf9;
}

.field-feedback.success {
    display: block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

.field-feedback.error {
    display: block;
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef9a9a;
}

.feedback-loading,
.feedback-success,
.feedback-error {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-loading::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Password Requirements Styles */
.password-requirements {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.password-requirements h4 {
    margin: 0 0 15px 0;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
}

.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.requirement-item.valid {
    color: #a5d6a7;
}

.requirement-item.invalid {
    color: #ffcdd2;
}

.req-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.req-text {
    flex: 1;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 15px;
}

.strength-label {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 8px;
    font-weight: 500;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-fill.very-weak {
    width: 20%;
    background: #f44336;
}

.strength-fill.weak {
    width: 40%;
    background: #ff9800;
}

.strength-fill.medium {
    width: 60%;
    background: #ffeb3b;
}

.strength-fill.strong {
    width: 80%;
    background: #8bc34a;
}

.strength-fill.very-strong {
    width: 100%;
    background: #4caf50;
}

.strength-text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.strength-text.very-weak {
    color: #f44336;
}

.strength-text.weak {
    color: #ff9800;
}

.strength-text.medium {
    color: #ffeb3b;
}

.strength-text.strong {
    color: #8bc34a;
}

.strength-text.very-strong {
    color: #4caf50;
}

/* Password Toggle */
.form-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

.eye-icon {
    font-size: 14px;
    user-select: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste para inputs com botão de toggle */
#senha,
#confirmar_senha {
    padding-right: 45px !important;
}

/* ==================== LEGAL DOCUMENTS SECTION ==================== */

.legal-documents {
    text-align: center;
}

.legal-intro {
    margin-bottom: 30px;
}

.legal-intro p {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 1.6;
}

.legal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.legal-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.legal-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.legal-card-content h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.legal-card-content p {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.legal-card-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.legal-card-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.legal-acceptance {
    margin-top: 30px;
    padding: 25px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-label {
    position: relative;
    cursor: pointer;
    display: block;
    width: 24px;
    height: 24px;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.checkbox-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 2;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-checkmark {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.2);
    transform: scale(1.05);
}

.checkbox-wrapper input[type="checkbox"]:focus + .checkbox-label .checkbox-custom {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.checkbox-wrapper input[type="checkbox"]:active + .checkbox-label .checkbox-custom {
    transform: scale(0.95);
}

.checkbox-text-container {
    flex: 1;
    line-height: 1.6;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-text-container:hover {
    background: rgba(79, 70, 229, 0.05);
}

.checkbox-text {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
}

.legal-link-inline {
    background: none;
    border: none;
    color: #4f46e5;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 600;
    padding: 2px 4px;
    margin: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.legal-link-inline:hover {
    color: #7c3aed;
    background: rgba(79, 70, 229, 0.1);
    text-decoration: none;
}

/* ==================== LEGAL MODALS ==================== */

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
}

.legal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.terms-content {
    color: #e0e0e0;
    line-height: 1.7;
}

.terms-content h3 {
    color: #4f46e5;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.terms-content h4 {
    color: #7c3aed;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.terms-content p {
    margin-bottom: 15px;
}

.terms-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 8px;
}

.terms-content strong {
    color: #ffffff;
}

/* LGPD Specific Styles */
.lgpd-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.lgpd-warning h3 {
    color: #ffc107 !important;
    margin-top: 0 !important;
    margin-bottom: 10px;
}

.user-obligations {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.user-obligations h4 {
    color: #f44336 !important;
    margin-top: 0 !important;
}

.prohibitions {
    background: rgba(156, 39, 176, 0.1);
    border-left: 4px solid #9c27b0;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.prohibitions h4 {
    color: #9c27b0 !important;
    margin-top: 0 !important;
}

.penalties {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.penalties h4 {
    color: #ff9800 !important;
    margin-top: 0 !important;
}

.legal-disclaimer {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.legal-disclaimer p {
    margin-bottom: 10px;
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Legal Documents */
@media (max-width: 768px) {
    .legal-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .legal-card {
        padding: 20px;
    }
    
    .legal-acceptance {
        padding: 20px;
    }
    
    .checkbox-container {
        gap: 12px;
    }
    
    .checkbox-label {
        width: 28px;
        height: 28px;
    }
    
    .checkbox-custom {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }
    
    .checkbox-checkmark {
        font-size: 18px;
    }
    
    .checkbox-text {
        font-size: 15px;
    }
    
    .legal-link-inline {
        padding: 3px 6px;
        font-size: 15px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .terms-content h3 {
        font-size: 18px;
    }
}

/* Responsive adjustments for password requirements */
@media (max-width: 768px) {
    .password-requirements {
        padding: 15px;
        margin-top: 15px;
    }
    
    .requirement-item {
        font-size: 13px;
    }
    
    .password-requirements h4 {
        font-size: 15px;
    }
} 