body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: url('/img/FUNDO-GRADIENT.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    overflow: hidden;
}

.splash-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 20px;
}

header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    gap: 8px;  espaçamento entre os blocos 
}

.branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;  espaçamento entre a imagem e o texto 
    margin-bottom: 20px;
}

.logo {
    width: 200px;
    height: auto;
}


.title_login {
    font-size: 2.5rem;
    color: #855AEC;
    margin: 0;
}


.slogan {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
}


@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}


@keyframes loading {
    0% {
        left: 0%;
    }

    50% {
        left: 60%;
    }

    100% {
        left: 0%;
    }
}

.start-button {
    background-color: transparent;
    color: white;
    padding: 16px 40px;  antes 12px 30px 
    border: 2px solid #A68EFF;
    border-radius: 10px;
    font-size: 1.3rem;  antes 1.1rem 
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px #A68EFF80;
    margin-top: 20px;
}

    .start-button:hover {
        background-color: #5a3ed3;
        color: black;
    }

footer {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}


.login-card {
    width: min(420px, 92vw);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(133,90,236,0.35);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

    .form-row label {
        font-size: 0.95rem;
        color: #ddd;
    }

    .form-row input {
        height: 44px;
        padding: 0 12px;
        outline: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .form-row input:focus {
            border-color: #5a3ed3;
            box-shadow: 0 0 0 3px rgba(166,142,255,0.22);
        }

.field-error {
    color: #ffb3b3;
    font-size: 0.85rem;
}

.login-error {
    margin-top: 6px;
    color: #ffb3b3;
    font-size: 0.95rem;
}



/* === Links extras (criar conta, verificar e-mail, esqueceu senha) === */
.login-links {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
    color: #fff; /* sempre branco */
}

    .login-links a {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: underline;
        background: transparent;
        color: #fff; /* sempre branco */
        border: none;
    }

        .login-links a:visited {
            color: #fff; /* força branco mesmo após visitado */
        }

        .login-links a:hover {
            color: #fff;
        }

footer {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #aaa;
}


/* === Split 50/50: carrossel (esq) + login (dir) === */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100vw;
}

/* Lado esquerdo: carrossel */
.left-hero {
    position: relative;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    position: relative;
    width: min(720px, 90%);
    height: min(520px, 60vh);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(133,90,236,0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 500ms ease;
}

.slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 24px;
    gap: 12px;
}

.slide-img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
}

.slide-copy {
    text-align: center;
}

    .slide-copy h2 {
        margin: 0 0 6px;
        color: #ffffff;
        font-size: 1.6rem;
    }

    .slide-copy p {
        margin: 0;
        color: #ddd;
        font-size: 1rem;
    }


/* CTA opcional dentro do slide */
.slide-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(166, 142, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

    .slide-cta:hover {
        background: rgba(166,142,255,0.15);
    }

/* Controles */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

    .nav:hover {
        background: rgba(0,0,0,0.55);
    }

.prev {
    left: 12px;
}

.next {
    right: 12px;
}

.dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border: 1px solid #A68EFF;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0.7;
}

    .dot.active {
        background: #A68EFF;
        opacity: 1;
    }

/* Lado direito: login */
.right-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

/* Responsividade */
@media (max-width: 1100px) {
    .auth-split {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .left-hero {
        order: 1;
        padding-top: 56px;
    }

    .right-auth {
        order: 2;
        padding-top: 0;
        padding-bottom: 48px;
    }

    .carousel {
        height: 46vh;
    }
}


/* ===== Paleta AI Rocks (ajuste se precisar) ===== */
:root {
    --air-primary: #8F70FF; /* roxo base */
    --air-primary-2: #A68EFF; /* roxo claro */
    --air-accent: #5AE6FF; /* ciano para detalhes */
    --air-bg-1: #0F0B23; /* fundo escuro */
    --air-text: #ffffff;
}

/* ===== Botão Futurista ===== */
.btn-future {
    --_bg1: linear-gradient(135deg, rgba(143,112,255,0.22), rgba(90,230,255,0.12));
    --_bg2: linear-gradient(135deg, rgba(143,112,255,0.35), rgba(90,230,255,0.25));
    --_border: 1px solid rgba(166,142,255,0.45);
    --_shadow: 0 8px 28px rgba(143,112,255,0.35), inset 0 0 0 1px rgba(90,230,255,0.15);
    --_filter: drop-shadow(0 0 12px rgba(90,230,255,0.25));
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    border: var(--_border);
    color: var(--air-text);
    background: var(--_bg1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--_shadow);
    filter: var(--_filter);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    cursor: pointer;
}

    .btn-future:hover {
        background: var(--_bg2);
        border-color: rgba(166,142,255,0.75);
        box-shadow: 0 10px 36px rgba(143,112,255,0.45), 0 0 30px rgba(90,230,255,0.25) inset;
        transform: translateY(-1px);
    }

    .btn-future:active {
        transform: translateY(0);
        box-shadow: 0 6px 16px rgba(143,112,255,0.28) inset;
    }

    .btn-future:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(143,112,255,0.35), 0 0 0 6px rgba(90,230,255,0.25), 0 12px 32px rgba(143,112,255,0.35);
    }

    /* Ícone opcional dentro do botão */
    .btn-future .icon {
        width: 18px;
        height: 18px;
        display: inline-block;
        filter: drop-shadow(0 0 6px rgba(90,230,255,0.45));
    }

    /* Versão “ghost” (transparente com contorno) */
    .btn-future.ghost {
        background: transparent;
        border: 1px dashed rgba(166,142,255,0.6);
        box-shadow: none;
        filter: none;
    }

        .btn-future.ghost:hover {
            background: linear-gradient(135deg, rgba(143,112,255,0.12), rgba(90,230,255,0.08));
            border-style: solid;
        }

    /* Tamanhos */
    .btn-future.sm {
        padding: 9px 14px;
        border-radius: 12px;
        font-weight: 600;
    }

    .btn-future.lg {
        padding: 14px 22px;
        border-radius: 16px;
        font-size: 1.02rem;
    }

    /* Largura total (ex: em formulários) */
    .btn-future.block {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Estado desabilitado */
    .btn-future:disabled,
    .btn-future[aria-disabled="true"] {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
    }

    /* Loading (usa um spinner simples) */
    .btn-future.loading {
        position: relative;
        pointer-events: none;
    }

        .btn-future.loading::after {
            content: "";
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.4);
            border-top-color: var(--air-accent);
            animation: spin .9s linear infinite;
        }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Respeita preferência de reduzir movimento */
@media (prefers-reduced-motion: reduce) {
    .btn-future {
        transition: none;
    }

        .btn-future:hover, .btn-future:active {
            transform: none;
        }
}


.code-grid {
    display: grid;
    grid-template-columns: repeat(6, 52px);
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}

.code-cell {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(166,142,255,0.45);
    border-radius: 12px;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease;
}

    .code-cell:focus {
        box-shadow: 0 0 0 3px rgba(143,112,255,0.35), 0 0 0 6px rgba(90,230,255,0.22);
        border-color: rgba(166,142,255,0.85);
    }

@media (max-width:520px) {
    .code-grid {
        grid-template-columns: repeat(6, 40px);
        gap: 8px;
    }

    .code-cell {
        width: 20px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* Mensagens */
.login-success {
    color: #9af7c3;
    background: rgba(18, 94, 54, .2);
    border: 1px solid rgba(154, 247, 195, .35);
    border-radius: 10px;
    padding: 8px 10px;
}


.btn-primario {
    background: linear-gradient(90deg, #9c27ff, #ff4081);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
}
