/* Cadastro Page Specific Styles */

.hero-section-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section-form .container {
    position: relative;
    z-index: 2;
}

/* Form Intro */
.form-intro h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.form-intro .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
}

.feature-item span {
    color: var(--white);
    font-weight: 500;
}

/* Form Container */
.form-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin-left: 2rem;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-color);
}

.form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
    color: rgba(108, 117, 125, 0.6);
}

.form-text {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* Password Input */
.password-input {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Captcha */
.captcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Submit Button */
.btn-primary.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary.btn-lg::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: left 0.5s;
}

.btn-primary.btn-lg:hover::before {
    left: 100%;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.form-footer p {
    color: var(--secondary-color);
    margin: 0;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

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

.benefit-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-card p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* Steps Section */
.steps-section {
    padding: 5rem 0;
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.step-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Form Validation */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback, .valid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.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 var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .form-container {
        margin-left: 0;
        margin-top: 3rem;
    }
    
    .form-intro h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .form-intro .lead {
        text-align: center;
    }
    
    .features-list {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section-form {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .form-intro h1 {
        font-size: 2rem;
    }
    
    .form-intro .lead {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .benefit-card, .step-card {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .btn-primary.btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .benefit-icon, .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .captcha-container {
        overflow-x: auto;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .benefits-section, .steps-section {
        display: none;
    }
    
    .hero-section-form {
        background: var(--white);
        color: var(--dark-color);
        padding: 2rem 0;
        min-height: auto;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
