/* =============================== */
/* PROJETO EDEN - CRIAÇÃO DE CONTA */
/* =============================== */

:root {
    --eden-bg-dark: #020f0a;
    --eden-bg-card: rgba(5, 31, 20, 0.94);
    --eden-green: #1f6b41;
    --eden-green-dark: #0d3824;
    --eden-gold: #e5bd64;
    --eden-gold-light: #fff0a8;
    --eden-text: #f4ead0;
    --eden-muted: #cdbd91;
    --eden-danger: #ff9aaa;
    --eden-danger-bg: rgba(196, 95, 114, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--eden-text);
    background: #020f0a;
}

body {
    overflow-x: hidden;
}

/* =============================== */
/* FUNDO */
/* =============================== */

#magic-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.register-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 90px 18px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            180deg,
            rgba(2, 15, 10, 0.72) 0%,
            rgba(2, 15, 10, 0.88) 52%,
            rgba(1, 8, 5, 0.96) 100%
        ),
        radial-gradient(circle at 20% 16%, rgba(229, 189, 100, 0.16), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(31, 107, 65, 0.28), transparent 36%),
        url("../images/projetoeden/home/background-eden.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.register-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 78%);
    pointer-events: none;
}

.register-wrapper::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.34) 64%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

/* =============================== */
/* CARD */
/* =============================== */

.register-card {
    position: relative;
    width: min(760px, 100%);
    padding: 38px 36px 34px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 189, 100, 0.15), transparent 34%),
        linear-gradient(180deg, rgba(6, 35, 22, 0.97), rgba(2, 18, 12, 0.98));
    border: 1px solid rgba(229, 189, 100, 0.46);
    box-shadow:
        0 0 44px rgba(229, 189, 100, 0.16),
        0 34px 85px rgba(0, 0, 0, 0.66),
        inset 0 0 28px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    animation: edenRegisterShow 0.45s ease;
}

.register-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 78%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 240, 168, 0.92), transparent);
    box-shadow: 0 0 18px rgba(229, 189, 100, 0.68);
}

.register-card::after {
    content: "";
    position: absolute;
    top: -130px;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(229, 189, 100, 0.14), transparent 68%);
    pointer-events: none;
}

@keyframes edenRegisterShow {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================== */
/* TÍTULO */
/* =============================== */

.login-title {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 16px rgba(229, 189, 100, 0.35);
}

.registro-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 12px rgba(229, 189, 100, 0.48))
        drop-shadow(0 0 20px rgba(31, 107, 65, 0.3));
    animation: edenRegisterLogoFloat 3.4s ease-in-out infinite;
}

@keyframes edenRegisterLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* =============================== */
/* FORM */
/* =============================== */

.neon-form {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 14px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group.with-icon {
    position: relative;
}

.input-group .input-icon,
.input-group .icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 3;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--eden-gold);
    pointer-events: none;
}

.input-group .input-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.input-group input,
.input-group select {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    border-radius: 15px;
    background: rgba(1, 12, 8, 0.72);
    border: 1px solid rgba(229, 189, 100, 0.28);
    color: var(--eden-text);
    font-size: 14px;
    outline: none;
    transition: 0.25s ease;
}

.input-group input::placeholder {
    color: rgba(205, 189, 145, 0.66);
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    border-color: rgba(255, 240, 168, 0.78);
    box-shadow:
        0 0 0 3px rgba(229, 189, 100, 0.08),
        0 0 22px rgba(229, 189, 100, 0.14);
    background: rgba(1, 12, 8, 0.9);
}

/* Campos que precisam ocupar a largura toda */
.password-strength,
.password-rules,
.gender-group,
.neon-button,
.text-center,
.register-card label {
    grid-column: 1 / -1;
}

/* =============================== */
/* ERRO */
/* =============================== */

.error-msg {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--eden-danger-bg);
    border: 1px solid rgba(255, 154, 170, 0.48);
    color: #ffd6dd;
    font-size: 14px;
    text-align: center;
    box-shadow: inset 0 0 18px rgba(255, 154, 170, 0.04);
}

/* =============================== */
/* FORÇA DA SENHA */
/* =============================== */

.password-strength {
    position: relative;
    min-height: 32px;
    margin: -4px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.password-strength::before {
    content: "";
    flex: 1;
    height: 9px;
    border-radius: 999px;
    background: rgba(1, 12, 8, 0.88);
    border: 1px solid rgba(229, 189, 100, 0.2);
}

.password-strength #strengthFill {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0%;
    height: 9px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, #c45f72, #e5bd64, #1f6b41);
    transition: 0.25s ease;
}

.strength-text {
    min-width: 120px;
    color: var(--eden-muted);
    font-size: 12px;
    text-align: right;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: -2px 0 0;
    padding: 0;
}

.password-rules li {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(1, 12, 8, 0.45);
    border: 1px solid rgba(229, 189, 100, 0.18);
    color: rgba(205, 189, 145, 0.72);
    font-size: 12px;
    transition: 0.25s ease;
}

.password-rules li.valid,
.password-rules li.ok,
.password-rules li.active {
    color: var(--eden-gold-light);
    border-color: rgba(229, 189, 100, 0.46);
    background: rgba(31, 107, 65, 0.2);
}

.match-text {
    position: absolute;
    right: 14px;
    bottom: -18px;
    font-size: 11px;
}

.match-text.ok,
.match-text.valid {
    color: #fff0a8;
}

.match-text.error,
.match-text.invalid {
    color: #ff9aaa;
}

/* =============================== */
/* SEXO / GENDER */
/* =============================== */

.gender-group {
    padding: 16px 16px 16px 48px;
    border-radius: 16px;
    background: rgba(1, 12, 8, 0.42);
    border: 1px solid rgba(229, 189, 100, 0.22);
}

.gender-group .input-icon {
    top: 27px;
}

.gender-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gender-btn {
    height: 50px;
    border-radius: 14px;
    background: rgba(1, 12, 8, 0.72);
    border: 1px solid rgba(229, 189, 100, 0.28);
    color: var(--eden-muted);
    font-family: 'Cinzel', serif;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.gender-btn:hover,
.gender-btn.active,
.gender-btn.selected {
    color: var(--eden-gold-light);
    border-color: rgba(255, 240, 168, 0.72);
    background: rgba(31, 107, 65, 0.26);
    box-shadow: 0 0 18px rgba(229, 189, 100, 0.12);
}

/* =============================== */
/* LABEL DATA */
/* =============================== */

.register-card label {
    margin: 4px 0 -6px;
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================== */
/* BOTÃO */
/* =============================== */

.neon-button {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 58px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #113f28, #16633c);
    border: 1px solid var(--eden-gold);
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 18px rgba(229, 189, 100, 0.22),
        0 16px 34px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
}

.neon-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-20deg);
    transition: 0.55s ease;
}

.neon-button:hover::before {
    left: 130%;
}

.neon-button:hover {
    transform: translateY(-4px);
    border-color: var(--eden-gold-light);
    box-shadow:
        0 0 26px rgba(229, 189, 100, 0.34),
        0 20px 40px rgba(0, 0, 0, 0.43);
}

/* =============================== */
/* LINKS */
/* =============================== */

.text-center {
    margin-top: 0;
    text-align: center;
}

.text-center p {
    margin: 8px 0 0;
    color: var(--eden-muted);
    font-size: 14px;
    line-height: 1.6;
}

.text-center a {
    color: var(--eden-gold-light);
    font-weight: 800;
    text-decoration: none;
    transition: 0.25s ease;
}

.text-center a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(229, 189, 100, 0.55);
}

/* =============================== */
/* RESPONSIVO */
/* =============================== */

@media (max-width: 780px) {
    .register-wrapper {
        padding: 70px 14px 46px;
    }

    .register-card {
        padding: 30px 20px 26px;
        border-radius: 24px;
    }

    .neon-form {
        grid-template-columns: 1fr;
    }

    .login-title {
        font-size: 28px;
    }

    .registro-logo {
        width: 48px;
        height: 48px;
    }

    .password-strength {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .password-strength::before {
        width: 100%;
        flex: unset;
    }

    .password-strength #strengthFill {
        top: 4px;
        transform: none;
    }

    .strength-text {
        min-width: unset;
        text-align: center;
    }

    .gender-toggle {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 26px 16px 24px;
    }

    .input-group input,
    .input-group select {
        height: 52px;
        font-size: 13px;
    }

    .neon-button {
        height: 54px;
    }
}
/* =============================== */
/* AJUSTE ORGANIZAÇÃO DO FORMULÁRIO */
/* =============================== */

/* Faz o campo Data de Nascimento ocupar a linha inteira */
.register-card label + .input-group {
    grid-column: 1 / -1;
}

/* Deixa o input de data com largura total */
.register-card label + .input-group input[type="date"] {
    width: 100%;
}

/* Melhora o espaçamento da label Data de Nascimento */
.register-card label {
    margin-top: 10px;
    margin-bottom: -4px;
}

/* Ajusta a barra de força para ocupar bem a largura */
.password-strength {
    grid-column: 1 / -1;
    width: 100%;
}

/* Regras da senha mais alinhadas */
.password-rules {
    grid-column: 1 / -1;
    justify-content: flex-start;
}

/* Botão com espaçamento mais equilibrado */
.neon-button {
    margin-top: 8px;
}
/* =============================== */
/* ORGANIZAÇÃO REFINADA DO FORM */
/* =============================== */

/* Nome de usuário sozinho na primeira linha */
.register-username-field {
    grid-column: 1 / -1;
}

/* Nome de usuário mais destacado */
.register-username-field input {
    height: 56px;
}

/* Barra de força ocupa a largura inteira */
.password-strength {
    grid-column: 1 / -1;
    margin-top: -4px;
}

/* Regras da senha ocupam a largura inteira */
.password-rules {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-bottom: 2px;
}

/* Sexo ocupa a largura inteira */
.gender-group {
    grid-column: 1 / -1;
}

/* Remove label solta caso ainda exista */
.register-card label {
    display: none;
}

/* Data de nascimento agora se comporta como input comum no grid */
.register-birthdate-field {
    grid-column: auto;
}

/* Placeholder visual para data */
.register-birthdate-field input {
    color: var(--eden-text);
}

/* Remove br quebrando o layout */
.neon-form br {
    display: none;
}

/* Botão ocupa tudo */
.neon-button {
    grid-column: 1 / -1;
    margin-top: 12px;
}

/* Link inferior ocupa tudo */
.text-center {
    grid-column: 1 / -1;
}