/* ===== ESTILOS ESPECÍFICOS PARA PÁGINA DE CRIAÇÃO DE CONTA ===== */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, 
        rgba(9, 227, 49, 0.08) 0%, 
        rgba(0, 0, 0, 0.95) 50%,
        rgba(9, 227, 49, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(9, 227, 49, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(9, 227, 49, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(9, 227, 49, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.auth-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(9, 227, 49, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(9, 227, 49, 0.15);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-green), 
        transparent);
    border-radius: 3px;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: #b0b0b0;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== FORMULÁRIO MELHORADO ===== */
.auth-form {
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--neon-green);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--input-border);
    border-radius: 16px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: #666;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(9, 227, 49, 0.03);
    box-shadow: 
        0 0 0 4px rgba(9, 227, 49, 0.1),
        0 8px 25px rgba(9, 227, 49, 0.15);
    transform: translateY(-2px);
}

/* Estados de validação melhorados */
.form-group.success .form-input {
    border-color: var(--success-color);
    background: rgba(9, 227, 49, 0.05);
    box-shadow: 0 0 0 4px rgba(9, 227, 49, 0.08);
}

.form-group.error .form-input {
    border-color: var(--error-color);
    background: rgba(255, 77, 77, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.08);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    display: none;
    font-weight: 500;
    padding-left: 0.5rem;
}

/* ===== CAMPO DE SENHA MELHORADO ===== */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toggle-password:hover {
    background: var(--neon-green);
    color: var(--background);
    transform: translateY(-50%) scale(1.1);
}

/* ===== INDICADOR DE FORÇA DA SENHA MELHORADO ===== */
.password-strength {
    margin-top: 1.25rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: var(--input-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        var(--error-color) 0%, 
        #ffa500 50%, 
        var(--success-color) 100%);
    opacity: 0.3;
    border-radius: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.strength-weak {
    background: var(--error-color);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.strength-medium {
    background: #ffa500;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.strength-strong {
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(9, 227, 49, 0.5);
}

.strength-text {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.strength-text.strength-weak { color: var(--error-color); }
.strength-text.strength-medium { color: #ffa500; }
.strength-text.strength-strong { color: var(--success-color); }

/* ===== CHECKBOX DE TERMOS MELHORADO ===== */
.form-options {
    margin-bottom: 2.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    background: rgba(9, 227, 49, 0.05);
    border-color: rgba(9, 227, 49, 0.3);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checkbox-container input:checked + .checkmark {
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(9, 227, 49, 0.5);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: var(--background);
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-container.terms-error {
    background: rgba(255, 77, 77, 0.05);
    border-color: var(--error-color);
}

.checkbox-container.terms-error .checkmark {
    border-color: var(--error-color);
}

/* ===== BOTÕES MELHORADOS ===== */
.btn-full {
    width: 100%;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-hover));
    color: var(--background);
    box-shadow: 
        0 8px 25px rgba(9, 227, 49, 0.4),
        0 0 0 1px rgba(9, 227, 49, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(9, 227, 49, 0.6),
        0 0 0 1px rgba(9, 227, 49, 0.3);
}

.btn-icon {
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
}

.btn-text {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

/* ===== RODAPÉ DA AUTENTICAÇÃO MELHORADO ===== */
.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer-text {
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 500;
}

.link {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.link:hover {
    color: var(--neon-green-hover);
}

.link:hover::after {
    width: 100%;
}

/* ===== MENSAGEM DE SUCESSO MELHORADA ===== */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message i {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 2rem;
    display: block;
    animation: bounce 1s ease-in-out;
}

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

.success-message h3 {
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 800;
}

.success-message p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* ===== RESPONSIVIDADE MELHORADA ===== */
@media (max-width: 768px) {
    .auth-container {
        padding: 2.5rem 2rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 2.2rem;
    }
    
    .auth-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .form-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .checkbox-container {
        font-size: 0.9rem;
    }
}

/* ===== ANIMAÇÕES DE CARREGAMENTO ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* ===== ESTADOS DE FOCO PARA ACESSIBILIDADE ===== */
.btn:focus,
.form-input:focus,
.toggle-password:focus,
.checkbox-container:focus-within {
    outline: 3px solid var(--neon-green);
    outline-offset: 2px;
}

/* ===== REDUÇÃO DE MOVIMENTO ===== */
@media (prefers-reduced-motion: reduce) {
    .auth-container,
    .form-group,
    .success-message {
        animation: none;
    }
    
    .btn,
    .form-input,
    .toggle-password {
        transition: none;
    }
    
    .fa-spinner {
        animation: none;
    }
    
    .auth-section::before {
        animation: none;
    }
}