/* =========================================================
   RESET + BASE
========================================================= */
* {
    box-sizing: border-box;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #0b1f2d;
    color: #eaeff3;
    display: flex;
}

/* =========================================================
   FUNDO
========================================================= */
.bg-shape {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    background: #1F6FFF;
    top: -220px;
    left: -220px;
}

.shape-2 {
    background: #4A8BFF;
    bottom: -220px;
    right: -220px;
}

/* =========================================================
   ÁREA PRINCIPAL
========================================================= */
.cadastro-area {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

/* =========================================================
   CARD DE CADASTRO
========================================================= */
.cadastro-box {
    width: 100%;
    max-width: 500px;
    background: #081824;
    border-radius: 24px;
    padding: 44px 36px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

/* =========================================================
   TOPO
========================================================= */
.logo {
    width: 130px;
    margin-bottom: 16px;
    border-radius: 12px;
}

h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #eaeff3;
    letter-spacing: 0.4px;
}

.tagline {
    margin: 10px 0 34px;
    font-size: 0.9rem;
    color: #b3c4d6;
    opacity: 0.9;
    line-height: 1.5;
}

/* =========================================================
   FORMULÁRIO
========================================================= */
form {
    text-align: left;
}

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #dbe7f2;
    letter-spacing: 0.02em;
}

.opcional {
    color: #8fa6bf;
    font-weight: 500;
    font-size: 0.76rem;
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0b1f2d;
    color: #eaeff3;
    font-size: 0.92rem;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

input::placeholder {
    color: #8fa6bf;
}

input:focus {
    outline: none;
    border-color: rgba(31,111,255,0.6);
    box-shadow: 0 0 0 1px rgba(31,111,255,0.35);
    background: #0d2333;
}

/* =========================================================
   BOTÃO PRINCIPAL
========================================================= */
button {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, #1F6FFF, #4A8BFF);
    color: #02121d;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
    box-shadow: 0 16px 40px rgba(31,111,255,0.45);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(31,111,255,0.55);
    filter: brightness(1.1);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(31,111,255,0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   MENSAGEM DE ERRO
========================================================= */
.error {
    display: block;
    margin-top: 16px;
    min-height: 18px;
    font-size: 0.76rem;
    color: #ff9ca3;
    text-align: center;
}

/* =========================================================
   INFORMAÇÃO COMPLEMENTAR
========================================================= */
.cadastro-info {
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.cadastro-info p {
    margin: 0;
    font-size: 0.78rem;
    color: #a9bfd3;
    line-height: 1.5;
}

/* =========================================================
   RODAPÉ DO CARD
========================================================= */
.cadastro-footer {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #b3c4d6;
}

.cadastro-footer a {
    color: #6ea2ff;
    text-decoration: none;
    font-weight: 700;
}

.cadastro-footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   BOTÃO VOLTAR
========================================================= */
.btnVoltar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
}

.btnVoltar button {
    width: auto;
    padding: 10px 18px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #eaeff3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.75;
    box-shadow: none;
}

.btnVoltar button:hover {
    opacity: 1;
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 540px) {
    .cadastro-area {
        padding: 20px;
    }

    .cadastro-box {
        padding: 34px 22px;
        border-radius: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .tagline {
        margin-bottom: 28px;
        font-size: 0.85rem;
    }

    .campo {
        margin-bottom: 16px;
    }
}

/* =========================================================
   TELAS MUITO PEQUENAS
========================================================= */
@media (max-width: 360px) {
    .cadastro-box {
        border-radius: 18px;
        padding: 28px 18px;
    }

    input {
        padding: 13px 14px;
    }

    button {
        padding: 14px;
        font-size: 0.78rem;
    }

    .btnVoltar {
        left: 16px;
        bottom: 16px;
    }
}

/* =========================================================
   TELAS GRANDES
========================================================= */
@media (min-width: 1400px) {
    .bg-shape {
        filter: blur(180px);
        opacity: 0.5;
    }

    .cadastro-box {
        max-width: 540px;
    }
}
