/* Estilos melhorados para a página de cadastro */
:root {
    --input-bg: rgba(10, 10, 20, 0.7);
    --input-border: rgba(80, 80, 255, 0.3);
    --input-focus-border: rgba(0, 212, 255, 0.7);
    --error-color: #ff3860;
    --success-color: #00d68f;
    --step-inactive: rgba(80, 80, 255, 0.3);
    --step-active: rgba(0, 212, 255, 0.9);
    --step-complete: rgba(0, 212, 255, 0.7);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 28, 193, 0.1) 0%, rgba(121, 40, 202, 0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

.glitch-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="0.5" fill="rgba(0,212,255,0.2)" y="20"/><rect width="100%" height="0.5" fill="rgba(0,212,255,0.2)" y="40"/><rect width="100%" height="0.5" fill="rgba(0,212,255,0.2)" y="60"/><rect width="100%" height="0.5" fill="rgba(0,212,255,0.2)" y="80"/></svg>');
    opacity: 0.3;
    animation: glitch 2s infinite;
}

.active-glitch::before {
    opacity: 0.6;
    animation: glitch 0.2s infinite;
}

@keyframes glitch {
    0% { background-position: 0 0; }
    25% { background-position: 10% 10%; }
    50% { background-position: 5% 5%; }
    75% { background-position: -5% -5%; }
    100% { background-position: 0 0; }
}

/* Container principal */
.cadastro-container {
    max-width: 900px;
    width: 100%;
    background: rgba(10, 10, 20, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 40px 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cadastro-container {
        margin: 20px 0;
        width: 95%;
        border-radius: 10px;
    }
}

.logo-container {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid var(--card-border);
}

.logo-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.logo-container p {
    color: var(--text-dark);
    font-size: 1rem;
}

.form-container {
    padding: 40px;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
}

.form-container h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: var(--text-light);
}

.form-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Indicador de progresso melhorado */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .progress-container {
        padding: 0;
    }
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--step-inactive);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-align: center;
}

@media (max-width: 480px) {
    .step-label {
        font-size: 0.7rem;
    }
}

.progress-step.active .step-number {
    background-color: var(--step-active);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: var(--text-light);
    font-weight: bold;
}

.progress-step.complete .step-number {
    background-color: var(--step-complete);
    position: relative;
}

.progress-step.complete .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: var(--step-inactive);
    margin: 0 5px;
    position: relative;
    top: -17px;
    z-index: 1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.progress-bar.active {
    background-color: var(--step-active);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Etapas do formulário */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 10px;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.3rem;
    text-align: center;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-top: 5px;
}

/* Botões de navegação melhorados */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-buttons {
        flex-direction: column;
    }
}

.btn-prev, .btn-next {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    min-width: 150px;
}

.btn-prev {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--input-border);
    position: relative;
    overflow: hidden;
}

.btn-prev:hover {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    color: var(--accent);
}

.btn-next {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-next:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

.btn-prev::after, .btn-next::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-prev:hover::after, .btn-next:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Campos de formulário */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

input.error {
    border-color: var(--error-color);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--accent);
}

/* Checkbox e radio melhorados */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    width: 100%;
}

.checkbox-group a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent);
}

/* Seletor de planos melhorado */
.plans-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .plans-selector {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .plans-selector {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}

.plan-option {
    flex: 0 1 300px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    min-width: 250px;
}

@media (max-width: 768px) {
    .plan-option {
        flex: 0 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

.plan-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
    transform: translateY(-5px);
}

.plan-option.popular {
    transform: scale(1.08);
    z-index: 2;
    border: 3px solid var(--accent);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.5);
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 10, 20, 0.9), rgba(10, 10, 20, 0.8));
}

.plan-option.popular.selected {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.9);
}

.plan-details {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.plan-details li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.plan-details li i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(90deg, #ff3860 0%, var(--accent) 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 212, 255, 0.6);
    transform: rotate(5deg);
    z-index: 3;
    letter-spacing: 1px;
    animation: pulse-badge 2s infinite;
}

.plan-option h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: normal;
}

.plan-features {
    color: var(--text-light);
    font-size: 1rem;
    padding: 10px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin: 15px 0;
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, rgba(0, 212, 255, 0) 70%);
    opacity: 0;
    animation: glow 0.7s ease-out;
    pointer-events: none;
}

@keyframes glow {
    0% { opacity: 0.7; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(2); }
}

/* Botão de envio melhorado */
.submit-button {
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-badge {
    0% { transform: rotate(5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.8); }
    100% { transform: rotate(5deg) scale(1); }
}

/* Outros elementos */
.login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.login-link a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-link a:hover {
    text-decoration: underline;
    color: var(--text-light);
}

.cadastro-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* Animações adicionais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}