/* ============================================================
   Gerência Victor · formulário de cadastro
   Tema escuro + neon verde (identidade Loja do Cabra)
   ============================================================ */

:root {
    --bg: #07090b;
    --panel: #0c100e;
    --neon: #b6f36a;
    --neon-soft: #d4ff9a;
    --text: #eef2ee;
    --dim: #8c9a92;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --danger: #ff7b7b;
    --ok: #b6f36a;
    --radius: 22px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- fundo ---------- */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.bg-glow-a {
    top: -220px;
    right: -160px;
    background: radial-gradient(circle, rgba(182, 243, 106, 0.28), transparent 65%);
}

.bg-glow-b {
    bottom: -280px;
    left: -180px;
    background: radial-gradient(circle, rgba(70, 160, 120, 0.22), transparent 65%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

/* ---------- layout ---------- */

.shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100% - 40px);
    margin: 0 auto;
    padding: 40px 0 56px;
    display: grid;
    gap: 36px;
}

.brand {
    position: relative;
    min-width: 0;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(182, 243, 106, 0.22));
}

.brand-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.26em;
    color: var(--text);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--dim);
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 0 4px rgba(182, 243, 106, 0.16);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(182, 243, 106, 0.16); }
    50% { box-shadow: 0 0 0 8px rgba(182, 243, 106, 0.05); }
}

h1 {
    font-size: clamp(34px, 7vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin-bottom: 18px;
}

.neon {
    color: var(--neon);
    text-shadow: 0 0 32px rgba(182, 243, 106, 0.32);
}

.lede {
    max-width: 46ch;
    color: var(--dim);
    font-size: 15.5px;
    margin-bottom: 26px;
}

.perks {
    list-style: none;
    display: grid;
    gap: 11px;
    margin-bottom: 8px;
}

.perks li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14.5px;
    color: #cfd8d2;
}

.tick {
    display: inline-grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(182, 243, 106, 0.12);
    border: 1px solid rgba(182, 243, 106, 0.32);
    color: var(--neon);
    font-size: 11px;
    font-weight: 800;
    flex: none;
}

.goat-wrap {
    display: none;
}

/* ---------- cartão ---------- */

.card {
    position: relative;
    padding: 28px 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        rgba(10, 14, 12, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(182, 243, 106, 0.42), transparent 38%, transparent 62%, rgba(182, 243, 106, 0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-head {
    margin-bottom: 22px;
}

.card-head h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-head p {
    color: var(--dim);
    font-size: 13.5px;
    margin-top: 3px;
}

/* ---------- campos ---------- */

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 7px;
}

.control {
    position: relative;
    display: flex;
    align-items: center;
}

.control .icon {
    position: absolute;
    left: 14px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #6f7d76;
    pointer-events: none;
    transition: color 0.18s ease;
}

.control .icon svg {
    width: 18px;
    height: 18px;
}

.control input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 43px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.032);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.control input::placeholder {
    color: #5f6b65;
}

.control input:hover {
    border-color: var(--line-strong);
}

.control input:focus {
    outline: none;
    border-color: rgba(182, 243, 106, 0.6);
    background: rgba(182, 243, 106, 0.045);
    box-shadow: 0 0 0 4px rgba(182, 243, 106, 0.12);
}

.control input:focus + .peek,
.control:focus-within .icon {
    color: var(--neon);
}

.peek {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6f7d76;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.peek svg {
    width: 19px;
    height: 19px;
}

.peek:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.peek.on {
    color: var(--neon);
}

/* erro */

.error {
    display: none;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.35;
}

.field.invalid .error {
    display: block;
    animation: shake 0.32s ease;
}

.field.invalid .control input {
    border-color: rgba(255, 123, 123, 0.7);
    background: rgba(255, 123, 123, 0.05);
}

.field.invalid .control .icon {
    color: #ff9a9a;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.row {
    display: grid;
    gap: 0;
}

.hint {
    margin-top: 6px;
    color: #6d7a73;
    font-size: 11.5px;
}

/* ---------- botão ---------- */

.btn {
    position: relative;
    width: 100%;
    height: 54px;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ccff70 0%, #9ce63f 55%, #86d834 100%);
    color: #0a1408;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(140, 220, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.14s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 42px rgba(140, 220, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 2px solid var(--neon-soft);
    outline-offset: 3px;
}

.btn:disabled {
    cursor: progress;
    opacity: 0.85;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2.5px solid rgba(10, 20, 8, 0.25);
    border-top-color: #0a1408;
    display: none;
    animation: spin 0.7s linear infinite;
}

.btn.loading .btn-label {
    opacity: 0;
}

.btn.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- avisos ---------- */

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert.ok {
    color: var(--neon-soft);
    background: rgba(182, 243, 106, 0.08);
    border-color: rgba(182, 243, 106, 0.3);
}

.alert.bad {
    color: #ffb3b3;
    background: rgba(255, 123, 123, 0.08);
    border-color: rgba(255, 123, 123, 0.3);
}

.legal {
    margin-top: 16px;
    color: #66736c;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

/* ---------- link da loja ---------- */

.store {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(182, 243, 106, 0.3);
    background: linear-gradient(135deg, rgba(182, 243, 106, 0.13), rgba(182, 243, 106, 0.03));
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.store-tag {
    flex: none;
    padding: 7px 9px;
    border-radius: 8px;
    background: var(--neon);
    color: #0a1408;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.15;
}

.store-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-copy strong {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.store-copy small {
    font-size: 11.5px;
    color: var(--dim);
}

.store-arrow {
    flex: none;
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(182, 243, 106, 0.16);
    color: var(--neon);
    font-size: 15px;
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.store:hover {
    border-color: rgba(182, 243, 106, 0.6);
    background: linear-gradient(135deg, rgba(182, 243, 106, 0.2), rgba(182, 243, 106, 0.05));
    transform: translateY(-1px);
}

.store:hover .store-arrow {
    background: var(--neon);
    color: #0a1408;
    transform: translateX(2px);
}

/* ---------- sucesso ---------- */

.success {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 6, 5, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.success[hidden] {
    display: none;
}

.success-card {
    width: min(420px, 100%);
    padding: 34px 26px 26px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), #0b100d;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
    text-align: center;
    animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes pop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.check svg {
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    display: block;
    fill: none;
    stroke: var(--neon);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 18px rgba(182, 243, 106, 0.4));
}

.check circle {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: draw 0.6s ease forwards;
}

.check path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: draw 0.35s ease 0.45s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.success-card h2 {
    font-size: 23px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.success-card p {
    color: var(--dim);
    font-size: 14px;
    margin-bottom: 22px;
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    box-shadow: none;
    height: 46px;
    font-size: 12px;
}

.btn.ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    filter: none;
    box-shadow: none;
}

/* ---------- tablet / desktop ---------- */

@media (min-width: 720px) {
    .shell {
        padding: 56px 0 72px;
    }

    .card {
        padding: 34px 32px 28px;
    }

    .row {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (min-width: 980px) {
    .shell {
        width: min(1120px, 100% - 64px);
        min-height: 100svh;
        grid-template-columns: 1.06fr 0.94fr;
        align-items: center;
        gap: 64px;
        padding: 64px 0;
    }

    .brand {
        padding-bottom: 24px;
    }

    .goat-wrap {
        display: block;
        position: absolute;
        left: -40px;
        bottom: -70px;
        width: 118%;
        max-width: 620px;
        pointer-events: none;
        z-index: -1;
        opacity: 0.5;
        mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 62%, transparent 96%),
                    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 62%, transparent 96%),
                            linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
        -webkit-mask-composite: source-in;
    }

    .goat {
        display: block;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    }

    .card {
        padding: 36px 34px 28px;
    }
}

/* ---------- acessibilidade ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
