/* =========================================================

   RESET

========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

:root {

    --bg: #050b16;

    --bg-secondary: #081121;

    --card: rgba(10, 21, 40, 0.94);

    --card-secondary: #0d1930;

    --border: rgba(125, 143, 190, 0.16);

    --border-active: rgba(108, 78, 255, 0.55);

    --purple: #713cff;

    --purple-light: #955cff;

    --blue: #4478ff;

    --cyan: #27c6ff;

    --green: #36e486;

    --text: #f5f7ff;

    --text-secondary: #9ba8c2;

    --text-muted: #66738d;

    --danger: #ff5b75;

}

html {

    min-height: 100%;

}

body {

    min-height: 100vh;

    font-family:

        Inter,

        "Segoe UI",

        Roboto,

        Arial,

        sans-serif;

    color: var(--text);

    background: var(--bg);

    overflow-x: hidden;

}

/* =========================================================

   BACKGROUND

========================================================= */

.background {

    position: fixed;

    inset: 0;

    z-index: -10;

    overflow: hidden;

    background:

        radial-gradient(

            circle at 20% 40%,

            rgba(70, 47, 180, 0.12),

            transparent 30%

        ),

        radial-gradient(

            circle at 80% 20%,

            rgba(38, 112, 255, 0.08),

            transparent 35%

        ),

        linear-gradient(

            135deg,

            #040914 0%,

            #071020 55%,

            #050b16 100%

        );

}

.background-grid {

    position: absolute;

    inset: 0;

    opacity: 0.14;

    background-image:

        linear-gradient(

            rgba(103, 123, 180, 0.06) 1px,

            transparent 1px

        ),

        linear-gradient(

            90deg,

            rgba(103, 123, 180, 0.06) 1px,

            transparent 1px

        );

    background-size: 48px 48px;

    mask-image:

        linear-gradient(

            to bottom,

            black,

            transparent 90%

        );

}

.glow {

    position: absolute;

    border-radius: 50%;

    filter: blur(120px);

    pointer-events: none;

}

.glow-1 {

    width: 420px;

    height: 420px;

    left: -160px;

    top: 200px;

    background:

        rgba(103, 55, 255, 0.15);

}

.glow-2 {

    width: 500px;

    height: 500px;

    right: -200px;

    top: 60px;

    background:

        rgba(28, 115, 255, 0.11);

}

.glow-3 {

    width: 350px;

    height: 350px;

    left: 45%;

    bottom: -250px;

    background:

        rgba(103, 55, 255, 0.10);

}

/* =========================================================

   HEADER

========================================================= */

.header {

    width: 100%;

    height: 82px;

    border-bottom:

        1px solid rgba(121, 139, 183, 0.12);

    background:

        rgba(5, 12, 25, 0.82);

    backdrop-filter:

        blur(20px);

}

.header-container {

    width: min(1240px, calc(100% - 48px));

    height: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.brand {

    display: flex;

    align-items: center;

    gap: 13px;

    text-decoration: none;

    color: white;

}

.brand-pulse {

    position: relative;

    width: 48px;

    height: 42px;

    display: flex;

    align-items: center;

}

.pulse-line {

    width: 48px;

    height: 3px;

    position: relative;

    background:

        linear-gradient(

            90deg,

            var(--purple),

            var(--cyan)

        );

    box-shadow:

        0 0 12px var(--purple);

}

.pulse-line::before {

    content: "";

    position: absolute;

    left: 17px;

    top: -15px;

    width: 10px;

    height: 28px;

    border-left:

        3px solid var(--purple-light);

    border-bottom:

        3px solid var(--purple-light);

    transform:

        skewX(-20deg)

        rotate(-45deg);

}

.brand-text {

    display: flex;

    flex-direction: column;

}

.brand-text strong {

    font-size: 24px;

    letter-spacing: -0.8px;

}

.brand-text strong span {

    color: #4f9cff;

}

.brand-text small {

    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 10px;

}

.header-security {

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 13px;

    color: var(--text-secondary);

}

.security-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:

        0 0 10px rgba(54, 228, 134, 0.7);

}

/* =========================================================

   CONTAINER

========================================================= */

.main-container {

    width: min(1240px, calc(100% - 48px));

    min-height:

        calc(100vh - 150px);

    margin: 0 auto;

    padding: 70px 0;

    display: grid;

    grid-template-columns:

        minmax(0, 1.1fr)

        minmax(390px, 0.9fr);

    gap: 85px;

    align-items: center;

}

/* =========================================================

   HERO

========================================================= */

.hero {

    max-width: 650px;

}

.hero-badge {

    width: fit-content;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:

        8px 14px;

    margin-bottom: 22px;

    border:

        1px solid rgba(121, 80, 255, 0.32);

    border-radius: 30px;

    background:

        rgba(91, 54, 200, 0.10);

    color: #b6a6ff;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.5px;

    text-transform: uppercase;

}

.badge-pulse {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--purple-light);

    box-shadow:

        0 0 10px var(--purple-light);

}

.hero h1 {

    max-width: 600px;

    font-size:

        clamp(44px, 5vw, 70px);

    line-height: 1.03;

    letter-spacing: -3px;

    font-weight: 800;

}

.hero h1 span {

    display: block;

    background:

        linear-gradient(

            90deg,

            #8955ff 0%,

            #596fff 45%,

            #29c9ff 100%

        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}

.hero-description {

    max-width: 530px;

    margin-top: 24px;

    color: var(--text-secondary);

    font-size: 17px;

    line-height: 1.7;

}

/* =========================================================

   PULSE VISUAL

========================================================= */

.pulse-visual {

    position: relative;

    width: 100%;

    height: 160px;

    margin:

        30px 0

        20px;

    overflow: hidden;

}

.pulse-wave {

    position: absolute;

    inset: 0;

}

.pulse-wave svg {

    width: 100%;

    height: 100%;

    overflow: visible;

}

.pulse-wave polyline {

    fill: none;

    stroke:

        url("#pulseGradient");

    stroke-width: 4;

    stroke-linecap: round;

    stroke-linejoin: round;

    filter:

        drop-shadow(

            0 0 9px

            rgba(104, 80, 255, 0.85)

        );

    stroke-dasharray: 1100;

    stroke-dashoffset: 1100;

    animation:

        desenharPulse

        3s ease forwards;

}

@keyframes desenharPulse {

    to {

        stroke-dashoffset: 0;

    }

}

.pulse-core {

    position: absolute;

    left: 30%;

    top: 50%;

    width: 15px;

    height: 15px;

    transform:

        translate(-50%, -50%);

    border-radius: 50%;

    background: white;

    box-shadow:

        0 0 12px #fff,

        0 0 30px var(--purple),

        0 0 60px var(--purple);

    animation:

        corePulse

        2s infinite;

}

@keyframes corePulse {

    0%,

    100% {

        transform:

            translate(-50%, -50%)

            scale(0.8);

    }

    50% {

        transform:

            translate(-50%, -50%)

            scale(1.15);

    }

}

.pulse-orbit {

    position: absolute;

    left: 30%;

    top: 50%;

    transform:

        translate(-50%, -50%);

    border:

        1px solid rgba(112, 72, 255, 0.15);

    border-radius: 50%;

}

.orbit-1 {

    width: 70px;

    height: 70px;

}

.orbit-2 {

    width: 120px;

    height: 120px;

}

.orbit-3 {

    width: 180px;

    height: 180px;

}

/* =========================================================

   FEATURES

========================================================= */

.features {

    display: grid;

    grid-template-columns:

        repeat(3, 1fr);

    gap: 12px;

}

.feature {

    min-height: 82px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 11px;

    border:

        1px solid var(--border);

    border-radius: 14px;

    background:

        rgba(9, 20, 39, 0.65);

}

.feature-icon {

    min-width: 37px;

    width: 37px;

    height: 37px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:

        linear-gradient(

            135deg,

            rgba(111, 55, 255, 0.30),

            rgba(41, 159, 255, 0.16)

        );

    color: #a78bff;

    font-weight: 800;

}

.feature strong {

    display: block;

    font-size: 12px;

    margin-bottom: 4px;

}

.feature span {

    display: block;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.4;

}

/* =========================================================

   AUTH AREA

========================================================= */

.auth-area {

    width: 100%;

    max-width: 470px;

    margin-left: auto;

}

.auth-card {

    position: relative;

    padding: 35px;

    border:

        1px solid rgba(118, 136, 180, 0.18);

    border-radius: 22px;

    background:

        linear-gradient(

            145deg,

            rgba(13, 26, 49, 0.97),

            rgba(7, 16, 32, 0.98)

        );

    box-shadow:

        0 30px 80px

        rgba(0, 0, 0, 0.35);

    overflow: hidden;

}

.auth-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 12%;

    right: 12%;

    height: 1px;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(122, 77, 255, 0.8),

            rgba(40, 191, 255, 0.7),

            transparent

        );

}

.auth-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 27px;

}

.auth-logo {

    min-width: 50px;

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:

        linear-gradient(

            135deg,

            rgba(113, 60, 255, 0.28),

            rgba(52, 117, 255, 0.16)

        );

    border:

        1px solid rgba(130, 89, 255, 0.25);

}

.auth-logo-pulse {

    color: #a678ff;

    font-size: 27px;

    text-shadow:

        0 0 15px var(--purple);

}

.auth-header h2 {

    margin-bottom: 5px;

    font-size: 22px;

    letter-spacing: -0.4px;

}

.auth-header p {

    color: var(--text-secondary);

    font-size: 12px;

}

/* =========================================================

   TABS

========================================================= */

.auth-tabs {

    position: relative;

    height: 48px;

    margin-bottom: 27px;

    padding: 4px;

    display: grid;

    grid-template-columns:

        1fr 1fr;

    border-radius: 12px;

    background: #07101f;

    border:

        1px solid rgba(117, 135, 180, 0.13);

}

.auth-tab {

    position: relative;

    z-index: 2;

    border: 0;

    background: transparent;

    color: var(--text-muted);

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;

    transition:

        color 0.25s ease;

}

.auth-tab.active {

    color: white;

}

.tab-indicator {

    position: absolute;

    z-index: 1;

    top: 4px;

    bottom: 4px;

    left: 4px;

    width:

        calc(50% - 4px);

    border-radius: 9px;

    background:

        linear-gradient(

            135deg,

            rgba(100, 55, 235, 0.45),

            rgba(64, 87, 210, 0.35)

        );

    border:

        1px solid rgba(124, 91, 255, 0.30);

    box-shadow:

        0 5px 20px

        rgba(76, 52, 195, 0.15);

    transition:

        transform 0.32s

        cubic-bezier(.2, .8, .2, 1);

}

.tab-indicator.cadastro {

    transform:

        translateX(100%);

}

/* =========================================================

   FORMULÁRIOS

========================================================= */

.auth-form {

    display: none;

}

.auth-form.active {

    display: block;

    animation:

        formularioEntrada

        0.32s ease;

}

@keyframes formularioEntrada {

    from {

        opacity: 0;

        transform:

            translateY(8px);

    }

    to {

        opacity: 1;

        transform:

            translateY(0);

    }

}

.form-group {

    margin-bottom: 18px;

}

.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #dce3f3;

    font-size: 12px;

    font-weight: 600;

}

.label-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.label-row label {

    margin-bottom: 8px;

}

.forgot-password {

    margin-bottom: 8px;

    color: #8d7cff;

    font-size: 11px;

    text-decoration: none;

}

.forgot-password:hover {

    color: #b2a6ff;

}

.input-wrapper {

    position: relative;

}

.input-wrapper input {

    width: 100%;

    height: 52px;

    padding:

        0 46px

        0 46px;

    border:

        1px solid rgba(113, 132, 176, 0.18);

    border-radius: 11px;

    outline: none;

    background:

        rgba(5, 13, 27, 0.85);

    color: white;

    font-size: 13px;

    transition:

        border 0.2s ease,

        box-shadow 0.2s ease,

        background 0.2s ease;

}

.input-wrapper input::placeholder {

    color: #4f5d76;

}

.input-wrapper input:focus {

    border-color:

        rgba(113, 75, 255, 0.65);

    background:

        rgba(8, 17, 34, 0.95);

    box-shadow:

        0 0 0 3px

        rgba(111, 66, 255, 0.08);

}

.input-icon {

    position: absolute;

    z-index: 2;

    left: 16px;

    top: 50%;

    transform:

        translateY(-50%);

    width: 18px;

    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #697995;

    font-size: 13px;

}

.input-icon svg {

    width: 15px;

    height: 15px;

    fill: none;

    stroke: currentColor;

}

.lock-icon {

    font-size: 8px;

}

.password-toggle {

    position: absolute;

    right: 15px;

    top: 50%;

    transform:

        translateY(-50%);

    border: 0;

    background: transparent;

    color: #64738e;

    cursor: pointer;

    font-size: 16px;

}

.password-toggle:hover,

.password-toggle.visible {

    color: #9b83ff;

}

/* =========================================================

   CHECKBOX

========================================================= */

.remember,

.terms {

    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin:

        4px 0

        22px;

    color: var(--text-secondary);

    font-size: 11px;

    line-height: 1.6;

    cursor: pointer;

}

.remember input,

.terms input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}

.custom-checkbox {

    position: relative;

    flex-shrink: 0;

    width: 17px;

    height: 17px;

    margin-top: 1px;

    border:

        1px solid #35435f;

    border-radius: 5px;

    background: #07101e;

}

.remember input:checked

+ .custom-checkbox,

.terms input:checked

+ .custom-checkbox {

    border-color: var(--purple);

    background:

        linear-gradient(

            135deg,

            var(--purple),

            var(--blue)

        );

}

.remember input:checked

+ .custom-checkbox::after,

.terms input:checked

+ .custom-checkbox::after {

    content: "✓";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 11px;

    font-weight: bold;

}

.terms a {

    color: #9181ff;

    text-decoration: none;

}

/* =========================================================

   BOTÃO PRINCIPAL

========================================================= */

.primary-button {

    position: relative;

    width: 100%;

    height: 54px;

    padding:

        0 19px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    border:

        1px solid rgba(144, 110, 255, 0.55);

    border-radius: 11px;

    color: white;

    background:

        linear-gradient(

            100deg,

            #6535e8 0%,

            #5c4df5 48%,

            #367cf5 100%

        );

    box-shadow:

        0 10px 30px

        rgba(84, 56, 220, 0.25);

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:

        transform 0.2s ease,

        box-shadow 0.2s ease;

    overflow: hidden;

}

.primary-button::before {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 70%;

    height: 100%;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255, 255, 255, 0.15),

            transparent

        );

    transform:

        skewX(-20deg);

    transition:

        left 0.5s ease;

}

.primary-button:hover {

    transform:

        translateY(-2px);

    box-shadow:

        0 14px 35px

        rgba(84, 56, 220, 0.38);

}

.primary-button:hover::before {

    left: 140%;

}

.primary-button strong {

    font-size: 18px;

}

/* =========================================================

   FORM FOOTER

========================================================= */

.form-footer {

    margin-top: 22px;

    text-align: center;

    color: var(--text-secondary);

    font-size: 11px;

}

.link-button {

    margin-left: 4px;

    border: 0;

    background: transparent;

    color: #927fff;

    font-weight: 700;

    cursor: pointer;

}

.link-button:hover {

    color: #b5a9ff;

}

/* =========================================================

   MENSAGENS

========================================================= */

.auth-message {

    display: none;

    margin-bottom: 17px;

    padding: 11px 13px;

    border-radius: 9px;

    font-size: 11px;

}

.auth-message.error {

    display: block;

    border:

        1px solid rgba(255, 91, 117, 0.28);

    background:

        rgba(255, 91, 117, 0.08);

    color: #ff8799;

}

.auth-message.success {

    display: block;

    border:

        1px solid rgba(54, 228, 134, 0.25);

    background:

        rgba(54, 228, 134, 0.08);

    color: #67eda3;

}

/* =========================================================

   SEGURANÇA

========================================================= */

.auth-security {

    margin-top: 28px;

    padding-top: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border-top:

        1px solid rgba(113, 132, 176, 0.10);

}

.shield {

    color: #35d995;

    font-size: 12px;

}

.auth-security strong {

    display: block;

    margin-bottom: 2px;

    color: #9cabc3;

    font-size: 10px;

}

.auth-security small {

    display: block;

    color: #56647c;

    font-size: 9px;

}

/* =========================================================

   FOOTER

========================================================= */

.footer {

    width: min(1240px, calc(100% - 48px));

    min-height: 68px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:

        1px solid rgba(113, 132, 176, 0.10);

    color: #59667c;

    font-size: 10px;

}

.footer div {

    display: flex;

    gap: 25px;

}

.footer a {

    color: #65728a;

    text-decoration: none;

}

.footer a:hover {

    color: #9b8cff;

}

/* =========================================================

   RESPONSIVO

========================================================= */

@media

(max-width: 1050px) {

    .main-container {

        grid-template-columns:

            1fr 420px;

        gap: 40px;

    }

    .hero h1 {

        font-size: 48px;

    }

    .features {

        grid-template-columns: 1fr;

    }

}

@media

(max-width: 850px) {

    .header {

        height: 72px;

    }

    .header-container {

        width:

            calc(100% - 32px);

    }

    .brand-text strong {

        font-size: 21px;

    }

    .header-security {

        display: none;

    }

    .main-container {

        width:

            min(

                520px,

                calc(100% - 30px)

            );

        padding:

            45px 0;

        grid-template-columns:

            1fr;

        gap: 45px;

    }

    .hero {

        text-align: center;

    }

    .hero-badge {

        margin-left: auto;

        margin-right: auto;

    }

    .hero-description {

        margin-left: auto;

        margin-right: auto;

    }

    .pulse-visual {

        height: 120px;

    }

    .features {

        grid-template-columns:

            repeat(3, 1fr);

        text-align: left;

    }

    .feature {

        flex-direction: column;

        align-items: flex-start;

    }

    .auth-area {

        max-width: 100%;

        margin: 0;

    }

    .footer {

        width:

            calc(100% - 30px);

    }

}

@media

(max-width: 560px) {

    .header-container {

        width:

            calc(100% - 24px);

    }

    .brand-pulse {

        width: 40px;

    }

    .pulse-line {

        width: 40px;

    }

    .brand-text strong {

        font-size: 19px;

    }

    .brand-text small {

        font-size: 8px;

    }

    .main-container {

        width:

            calc(100% - 24px);

        padding:

            34px 0;

    }

    .hero h1 {

        font-size: 40px;

        letter-spacing: -2px;

    }

    .hero-description {

        font-size: 14px;

    }

    .features {

        grid-template-columns: 1fr;

    }

    .feature {

        flex-direction: row;

        align-items: center;

    }

    .auth-card {

        padding:

            27px 20px;

        border-radius: 18px;

    }

    .auth-header h2 {

        font-size: 19px;

    }

    .label-row {

        align-items: flex-start;

    }

    .forgot-password {

        font-size: 10px;

    }

    .footer {

        width:

            calc(100% - 24px);

        padding:

            20px 0;

        flex-direction: column;

        justify-content: center;

        gap: 12px;

    }

}

/* =========================================================

   TURNSTILE

========================================================= */

.captcha-area {

    width: 100%;

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:

        6px 0

        18px;

}

/* =========================================================

   BOTÃO AGUARDANDO CAPTCHA

========================================================= */

.turnstile-submit-hidden {

    display: none !important;

}

/* =========================================================

   BOTÃO PROCESSANDO

========================================================= */

.primary-button:disabled {

    cursor: not-allowed;

    opacity: 0.65;

    pointer-events: none;

}

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

}

.brand-icon {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: block;

    object-fit: contain;

}

.brand-text {

    display: flex;

    flex-direction: column;

}

.brand-text strong {

    color: #ffffff;

    font-size: 20px;

    font-weight: 800;

    line-height: 1.1;

}

.brand-text strong span {

    color: #6d50ff;

}

.brand-text small {

    margin-top: 4px;

    color: #7e8ca4;

    font-size: 9px;

    white-space: nowrap;

}
/* =========================================================
   TURNSTILE - GARANTIA DE VISIBILIDADE DO BOTÃO VALIDADO
========================================================= */

#loginSubmitBtn.turnstile-submit-ready,
#registerSubmitBtn.turnstile-submit-ready {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
}

#loginSubmitBtn.turnstile-submit-hidden,
#registerSubmitBtn.turnstile-submit-hidden {
    display: none !important;
}

#loginSubmitBtn.turnstile-submit-ready:disabled,
#registerSubmitBtn.turnstile-submit-ready:disabled {
    opacity: 0.65 !important;
    pointer-events: none;
}

/* =========================================================
   BOTÕES DE AUTENTICAÇÃO — VISIBILIDADE
========================================================= */

.auth-form .primary-button.turnstile-submit-hidden {
    display: none;
}

.auth-form .primary-button.turnstile-submit-ready {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
}



/* =========================================================
   BOTÕES DE AUTENTICAÇÃO — VISIBILIDADE
========================================================= */

.auth-form .primary-button.turnstile-submit-hidden {
    display: none;
}

.auth-form .primary-button.turnstile-submit-ready {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
}
