/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    --amarelo: #fce803;
    --preto: #0d0d0d;
    --cinza-escuro: #1a1a1a;
    --cinza-claro: #cccccc;
    --branco: #ffffff;
    --borda-fina: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* =========================================
   2. BASE E BODY
   ========================================= */
body {
    /* Fundo escurecido com tema de academia/ferro */
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), 
                url('https://images.unsplash.com/photo-1581009146145-b5ef050c2e1e?q=80&w=1470&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--branco);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* =========================================
   3. LAYOUT PRINCIPAL
   ========================================= */
.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    background-color: var(--cinza-escuro);
    border-radius: 20px;
    border: 1px solid var(--amarelo);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    overflow: hidden; 
    position: relative;
}

/* --- Painel Esquerdo --- */
.left-panel {
    flex: 1;
    min-width: 350px;
    background: linear-gradient(135deg, rgba(252, 232, 3, 0.1) 0%, rgba(13, 13, 13, 1) 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--borda-fina);
    position: relative;
}

/* --- Painel Direito --- */
.right-panel {
    flex: 1.5;
    min-width: 400px;
    background-color: var(--preto);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   4. ELEMENTOS DE MARCA E DECORAÇÃO
   ========================================= */
.logo-container {
    margin-bottom: 40px;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-tech {
    font-family: 'Orbitron', sans-serif;
    color: var(--amarelo);
    font-size: 32px;
    letter-spacing: 2px;
}

.form-logo {
    width: 65px; 
    height: auto;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(252, 232, 3, 0.4));
    animation: fadeInDown 0.8s ease-out; 
}

.tagline {
    color: var(--cinza-claro);
    font-size: 16px;
    margin-top: 5px;
}

.features {
    margin-top: 40px;
    z-index: 2;
}

.features h3 {
    font-size: 18px;
    color: var(--amarelo);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features p {
    color: var(--cinza-claro);
    font-size: 14px;
    margin-bottom: 25px;
    padding-left: 30px;
}

/* --- Animações --- */
.tech-elements {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.15;
    z-index: 1;
}

.floating-element {
    font-size: 28px;
    color: var(--amarelo);
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

.element-1 { top: 0; right: 50px; animation-delay: 0s; }
.element-2 { top: 80px; right: 10px; animation-delay: 1s; }
.element-3 { top: 150px; right: 60px; animation-delay: 2s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   5. FORMULÁRIOS E INPUTS
   ========================================= */
.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    color: var(--branco);
    margin-bottom: 5px;
}

.form-header p {
    color: var(--cinza-claro);
    font-size: 15px;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.input-group.full-width {
    width: 100%;
}

.input-group input {
    width: 100%;
    background-color: var(--cinza-escuro);
    border: 1px solid var(--borda-fina);
    padding: 15px 15px 15px 45px;
    border-radius: 8px;
    color: var(--branco);
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--amarelo);
    box-shadow: 0 0 10px rgba(252, 232, 3, 0.2);
}

.input-group label {
    position: absolute;
    left: 45px;
    top: 16px;
    color: #888;
    font-size: 15px;
    pointer-events: none;
    transition: 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -22px;
    left: 0;
    font-size: 13px;
    color: var(--amarelo);
    font-weight: 500;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 16px;
    color: #888;
    transition: 0.3s;
}

.input-group input:focus ~ .input-icon {
    color: var(--amarelo);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 16px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
}

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

/* --- Checkbox --- */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--cinza-claro);
    margin-top: -10px;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--amarelo);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-link {
    color: var(--amarelo);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* =========================================
   6. BOTÕES
   ========================================= */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--amarelo);
    color: var(--preto);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--branco);
    transform: translateY(-3px);
}

.btn-back-outline {
    width: 100%;
    padding: 16px;
    background-color: transparent;
    color: var(--cinza-claro);
    border: 1px solid var(--borda-fina);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-outline:hover {
    border-color: var(--amarelo);
    color: var(--amarelo);
    background-color: rgba(252, 232, 3, 0.05);
}

/* --- Botão Continuar (Tela de Sucesso) --- */
.btn-continue {
    margin-top: 25px;
    padding: 15px 40px;
    background-color: var(--amarelo);
    color: var(--preto);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 232, 3, 0.2);
}

.btn-continue:hover {
    background-color: var(--branco);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-continue:active {
    transform: scale(0.95); /* Efeito de "afundar" ao clicar */
}

/* Ajustes para a tela de sucesso ficar mais alinhada */
#successMessage h3 {
    color: var(--amarelo);
    font-size: 26px;
    margin: 15px 0 10px;
}

.success-icon {
    font-size: 60px;
    color: #2ed573; /* Verde sucesso */
    margin-bottom: 10px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =========================================
   7. NOTIFICAÇÕES E MENSAGENS
   ========================================= */
.success-message, 
.notification, 
.btn-loading { 
    display: none; 
}

#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff4757;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none; 
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

#successMessage {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
}

/* =========================================
   8. RODAPÉ (FOOTER)
   ========================================= */
.footer {
    width: 100%;
    background-color: #050505;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--borda-fina);
}

.footer p {
    color: #666;
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #666;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--amarelo);
}

/* =========================================
   9. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--borda-fina);
    }

    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
        gap: 0;
    }
}