:root {
    --accent: #63B3ED;
    --bg-panel: #1A202C;
    --text-muted: #A0AEC0;
    --error: #F56565;
    --success: #48BB78;
}

body {
    background-color: #1A202C;
    background-image: url('/assets/rede.png');
    background-size: cover;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    margin: 0;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgb(0 0 0 / 56%);
        z-index: -1;
    }

.wrapper {
    display: flex;
    width: 960px;
    max-width: 95%;
    background: rgba(26, 32, 44, 0.96);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 634px;
}

.left-panel {
    flex: 1.4;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    position: relative;
}

h1 {
    color: var(--accent);
    font-family: 'Orbitron';
    margin: 0 0 10px 0;
}

p.desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.input-box {
    position: relative;
    margin-bottom: 15px;
}

    /* REGRA GERAL DOS ÍCONES (ESQUERDA) */
    .input-box > i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #718096;
        transition: 0.3s;
        z-index: 4;
    }

.status-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    z-index: 3;
}

    .status-icon.loading {
        color: var(--accent);
    }

    .status-icon.taken {
        color: var(--error);
    }

    .status-icon.avail {
        color: var(--success);
    }

input, select, textarea {
    width: 100%;
    padding: 14px 40px 14px 45px;
    background: #0f131a;
    border: 2px solid #2D3748;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Inter';
    appearance: none;
}

#step-1 .input-box input {
    padding-right: 130px !important;
}

    /* AJUSTE: Garante espaço para o olho não ficar em cima do texto digitado */
    #step-1 .input-box input[type="password"],
    #step-1 .input-box input[type="text"]#inp-pass,
    #step-1 .input-box input[type="text"]#inp-conf {
        padding-right: 45px !important;
    }

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
}

input.invalid, select.invalid {
    border-color: var(--error) !important;
}

input.valid, select.valid {
    border-color: var(--success) !important;
}

.password-reqs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: -5px;
    flex-wrap: wrap;
}

.req-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
    transition: 0.3s;
}

    .req-item i {
        margin-right: 5px;
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    .req-item.valid {
        color: #fff;
        background: rgba(72, 187, 120, 0.2);
    }

    .req-item.invalid {
        color: var(--text-muted);
        background: rgba(245, 101, 101, 0.1);
    }

    .req-item.valid i {
        color: var(--success);
    }

    .req-item.invalid i {
        color: var(--error);
    }

.steps-bar {
    display: flex;
    margin-bottom: 25px;
    gap: 5px;
}

.s-dot {
    flex: 1;
    height: 4px;
    background: #2D3748;
    border-radius: 2px;
    transition: 0.3s;
}

    .s-dot.active {
        background: var(--accent);
    }

.nav-row {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Orbitron';
    text-transform: uppercase;
}

.btn-next {
    background: var(--accent);
    color: white;
}

.btn-prev {
    background: transparent;
    border: 1px solid #4A5568;
    color: var(--text-muted);
}

    .btn-prev:hover {
        border-color: var(--text-muted);
        color: #fff;
    }

.file-label {
    background: #2D3748;
    color: var(--text-muted);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: 1px dashed #4A5568;
    display: block;
}

.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-banner {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: <?php echo $error_message ? 'flex' : 'none';
    ?>;
    border: 1px solid var(--error);
    align-items: center;
}

    .error-banner i {
        margin-right: 8px;
    }

#msg-box.success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.validation-group {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

    .validation-group button {
        flex: 1;
        margin-top: 0 !important;
    }

#btn-resend {
    background: #2D3748;
    border: 1px solid #4A5568;
    color: white;
}

    #btn-resend:hover {
        background: #4A5568;
        border-color: var(--accent);
    }

#phone-group {
    display: flex;
    align-items: center;
    position: relative;
}

    #phone-group i {
        left: 16px;
        z-index: 5;
    }

    #phone-group #inp-ddi {
        width: 130px;
        flex-shrink: 0;
        border-right: none;
        border-radius: 10px 0 0 10px;
        padding-left: 45px;
        padding-right: 15px;
    }

    #phone-group #inp-phone {
        flex-grow: 1;
        border-left: none;
        border-radius: 0 10px 10px 0;
        padding-left: 15px;
    }

    #phone-group #inp-ddi, #phone-group #inp-phone {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right-width: 1px;
        border-right-color: #2D3748;
    }

    #phone-group #inp-phone {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left-width: 1px;
        border-right-width: 2px;
        border-right-color: #2D3748;
        border-top: 2px solid #2D3748;
        border-bottom: 2px solid #2D3748;
    }

    #phone-group:focus-within #inp-ddi, #phone-group:focus-within #inp-phone {
        border-color: var(--accent);
    }

    #phone-group:focus-within #inp-ddi {
        border-right-color: var(--accent);
    }

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.right-panel {
    flex: 0.9;
    background: linear-gradient(180deg, rgba(44, 82, 130, 0.2) 0%, rgba(26, 32, 44, 0.4) 100%);
    border-left: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.p-cover {
    height: 220px;
    background: linear-gradient(135deg, #2b6cb0, #1a202c);
    background-size: cover;
    position: relative;
}

.p-avatar {
    width: 120px;
    height: 120px;
    background: #1A202C;
    border: 5px solid #2D3748;
    border-radius: 50%;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    background-size: cover;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.p-body {
    padding: 70px 30px 30px;
    text-align: center;
}

.p-name {
    color: white;
    font-family: 'Orbitron';
    font-size: 1.5rem;
    margin: 0;
}

.p-user {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 5px;
}

.p-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

.p-meta {
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.verification-form input {
    font-size: 2rem !important;
    text-align: center;
    letter-spacing: 10px;
    font-family: monospace;
    padding-left: 15px !important;
    height: 60px;
}

@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
        height: auto;
    }

    .right-panel {
        display: none;
    }
}

select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0AEC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
    outline: none;
    border-radius: 10px;
}

    select option {
        background-color: #1A202C;
        color: white;
        padding: 12px;
    }

        select option:disabled {
            color: #A0AEC0;
            font-style: italic;
        }

    select:focus {
        outline: none;
        border-color: #63B3ED;
        box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
    }

/* --- ESTILOS PARA CHECKBOX DE TERMOS --- */
.terms-container {
    margin-top: 15px;
    margin-bottom: 5px;
    padding-left: 5px;
}

.terms-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
    padding-top: 5px;
}

    .terms-label input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #0f131a;
    border: 2px solid #2D3748;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 3px;
}

.terms-label:hover input ~ .checkmark {
    border-color: var(--accent);
}

.terms-label input:checked ~ .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.terms-label input:checked ~ .checkmark:after {
    display: block;
}

.terms-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

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

.checkmark.invalid {
    border-color: var(--error);
    box-shadow: 0 0 5px rgba(245, 101, 101, 0.5);
}

/* --- CORREÇÃO: OLHO DE SENHA NO LADO DIREITO --- */
/* Usamos .input-box .toggle-pass para ter mais especificidade que .input-box > i */
.input-box .toggle-pass {
    left: auto !important; /* IMPORTANTE: Anula o 'left: 16px' herdado */
    right: 15px !important;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    font-size: 0.9rem;
}

    .input-box .toggle-pass:hover {
        color: var(--accent);
    }


::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: #242526;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #18191a;
}

::-webkit-scrollbar-thumb {
    background-color: #A0AEC0;
    border-radius: 10px;
    border: 3px solid #2D3748;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #A0AEC0;
    }