:root {
    --background: #08080b;
    --surface: #15151a;
    --primary: var(--ane-cor-padrao, #e91e53);
    --primary-light: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 72%, white);
    --text: #f5f5f7;
    --text-soft: #a6a6b0;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.13);
    --radius-large: 26px;
    --radius-small: 10px;
}

.login-main,
.login-main *,
.login-footer,
.login-footer *,
.login-loading,
.login-loading *,
.page-glow {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(107, 27, 72, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 60%,
            rgba(65, 27, 105, 0.13),
            transparent 35%
        ),
        var(--background);
}

.login-main,
.login-footer,
.login-loading {
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-main a,
.login-footer a {
    color: inherit;
    text-decoration: none;
}

.login-main button,
.login-main input {
    font: inherit;
}

.login-main button,
.login-main a,
.login-main input,
.login-footer a {
    -webkit-tap-highlight-color: transparent;
}

/* Efeitos do fundo */

.page-glow {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.page-glow-one {
    top: -160px;
    left: -130px;
    width: 430px;
    height: 430px;
    background: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 13%, transparent);
}

.page-glow-two {
    right: -160px;
    bottom: -180px;
    width: 500px;
    height: 500px;
    background: rgba(91, 38, 145, 0.12);
}

/* Conteúdo */

.login-main {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 34px 34px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 1040px;
    min-height: 640px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.015);
}

/* Painel visual */

.login-presentation {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(35, 12, 27, 0.96),
            rgba(16, 12, 21, 0.98)
        );
}

.login-presentation::before {
    content: "";
    position: absolute;
    top: -130px;
    left: -110px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 17%, transparent);
    filter: blur(55px);
}

.login-presentation::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: rgba(106, 37, 155, 0.16);
    filter: blur(65px);
}

.presentation-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 36px 36px;
    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 95%
        );
}

.presentation-content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    padding: 43px 42px 39px;
    display: flex;
    flex-direction: column;
}

.presentation-label {
    align-self: flex-start;
    padding: 7px 10px;
    color: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 45%, white);
    border: 1px solid color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 8%, transparent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.clock-container {
    position: relative;
    width: 270px;
    height: 270px;
    margin: 40px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.clock-ring-one {
    inset: 4px;
    box-shadow:
        0 0 45px color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 14%, transparent),
        inset 0 0 30px color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 6%, transparent);
}

.clock-ring-two {
    inset: 27px;
    border-color: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 12%, transparent);
}

.presentation-clock {
    position: relative;
    z-index: 2;
    width: 225px;
    height: 225px;
    object-fit: contain;
    filter:
        drop-shadow(0 24px 24px rgba(0, 0, 0, 0.48))
        drop-shadow(0 0 25px color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 16%, transparent));
    transform: rotate(-2deg);
    transition: transform 0.35s ease;
}

.login-card:hover .presentation-clock {
    transform: rotate(0deg) scale(1.025);
}

.presentation-text {
    margin-top: auto;
    text-align: center;
}

.presentation-text h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.presentation-text p {
    max-width: 390px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.features {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.feature {
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c9c9d0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 600;
}

.feature i {
    color: var(--primary-light);
    font-size: 12px;
    font-style: normal;
}

/* Formulário */

.login-form-area {
    position: relative;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            145deg,
            rgba(25, 25, 31, 0.98),
            rgba(17, 17, 22, 1)
        );
}

.login-form-content {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 54px 44px;
}

.form-heading {
    margin-bottom: 32px;
}

.form-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.form-heading h2 {
    margin: 0 0 9px;
    font-size: 30px;
    letter-spacing: -1px;
}

.form-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #dedee3;
    font-size: 12px;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-row label {
    margin-bottom: 9px;
}

.forgot-password {
    margin-bottom: 9px;
    color: #b7b7c0;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-light);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 44px;
    outline: none;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    background: rgba(8, 8, 12, 0.57);
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #666671;
}

.input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.input-wrapper input:focus {
    border-color: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 65%, transparent);
    background: rgba(12, 12, 16, 0.78);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 9%, transparent),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #72727d;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-icon svg,
.password-toggle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-light);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 30px;
    height: 30px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7c7c87;
    border: 0;
    border-radius: 7px;
    background: transparent;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle.is-visible {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.045);
}

/* Manter conectado */

.remember-option {
    margin: 3px 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.remember-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    position: relative;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.22);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;
    width: 4px;
    height: 7px;
    opacity: 0;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg) scale(0.6);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.remember-option input:checked + .custom-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}

.remember-option input:checked + .custom-checkbox::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.remember-text {
    color: #a7a7b1;
    font-size: 11px;
}

/* Botão entrar */

.login-button {
    position: relative;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    cursor: pointer;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 78%, black)
        );
    box-shadow:
        0 13px 30px color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 23%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.login-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent
        );
    transform: rotate(20deg);
    transition: left 0.6s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow:
        0 17px 36px color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 31%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-button:hover::before {
    left: 150%;
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Separador */

.form-divider {
    position: relative;
    margin: 27px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    color: #656570;
    background: #131318;
    font-size: 10px;
    text-transform: uppercase;
}

/* Cadastro */

.register-box {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.register-box strong {
    display: block;
    margin-bottom: 4px;
    color: #e7e7eb;
    font-size: 11px;
}

.register-box p {
    margin: 0;
    color: #777781;
    font-size: 9px;
    line-height: 1.5;
}

.register-button {
    flex-shrink: 0;
    padding: 9px 12px;
    color: #f0f0f3;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 10px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.register-button:hover {
    color: #ffffff;
    border-color: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 35%, transparent);
    background: color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 10%, transparent);
}

.adult-notice {
    margin: 20px 0 0;
    color: #5f5f69;
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}

/* Rodapé */

.login-footer {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 19px 34px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: #606069;
    font-size: 10px;
}

.login-footer p {
    margin: 0;
}

.login-footer nav {
    display: flex;
    gap: 22px;
}

.login-footer a {
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--primary-light);
}

/* Responsivo */

@media (max-width: 900px) {
    .login-main {
        padding: 25px;
    }

    .login-card {
        max-width: 590px;
        grid-template-columns: 1fr;
    }

    .login-presentation {
        min-height: 300px;
    }

    .presentation-content {
        min-height: 300px;
        padding: 31px 34px;
    }

    .clock-container {
        position: absolute;
        top: 50%;
        right: 23px;
        width: 235px;
        height: 235px;
        margin: 0;
        opacity: 0.72;
        transform: translateY(-50%);
    }

    .presentation-clock {
        width: 185px;
        height: 185px;
    }

    .presentation-text {
        position: relative;
        z-index: 3;
        max-width: 55%;
        margin-top: auto;
    }

    .presentation-text h1 {
        font-size: 31px;
    }

    .features {
        position: relative;
        z-index: 3;
        max-width: 55%;
    }

    .feature {
        padding: 6px 8px;
        font-size: 9px;
    }

    .login-form-content {
        max-width: none;
        padding: 45px 42px;
    }
}

@media (max-width: 620px) {
    .login-main {
        align-items: flex-start;
        padding: 0 !important;
    }

    .login-card {
        min-height: auto;
        border-radius: 19px;
    }

    .login-presentation {
        min-height: auto;
    }

    .presentation-content {
        min-height: auto;
        padding: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .presentation-label {
        align-self: center;
        margin-bottom: 14px;
        font-size: 8px;
    }

    .clock-container {
        position: relative;
        top: auto;
        right: auto;
        width: 190px;
        height: 190px;
        margin: 0 auto 18px;
        opacity: 1;
        transform: none;
    }

    .presentation-clock {
        width: 150px;
        height: 150px;
    }

    .presentation-text {
        max-width: 100%;
        margin-top: 0;
        text-align: center;
    }

    .presentation-text h1 {
        margin-bottom: 7px;
        font-size: 26px;
    }

    .presentation-text p {
        max-width: 100%;
        margin: 0 auto;
        font-size: 11px;
        line-height: 1.55;
    }

    .features {
        display: none;
    }

    .login-form-content {
        padding: 35px 24px 30px;
    }

    .form-heading {
        margin-bottom: 27px;
    }

    .form-heading h2 {
        font-size: 26px;
    }

    .form-heading p {
        font-size: 12px;
    }

    .input-wrapper input {
        height: 49px;

        font-size: 12px;
    }

    .register-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-button {
        width: 100%;

        text-align: center;
    }

    .login-footer {
        padding: 20px;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .presentation-text h1 {
        font-size: 23px;
    }

    .login-form-content {
        padding-right: 19px;
        padding-left: 19px;
    }
}

/* Carregamento do login */

.login-loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 4, 7, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.login-loading__box {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 150px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: translate(-50%, -50%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: #15151a;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    font-weight: 700;
}

.login-loading__spinner {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: login-spinner 0.7s linear infinite;
}

@keyframes login-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
 * Página de cadastro
 * Reutiliza a estrutura visual da página de login
 * ========================================================= */

.register-card {
    min-height: 760px;
}

.register-form-content {
    max-width: 500px;
    padding: 38px 34px;
}

.register-form-content .form-heading {
    margin-bottom: 24px;
}

.register-form-content .form-heading h2 {
    font-size: 28px;
}

.register-form-content .form-group {
    margin-bottom: 16px;
}

/* Campos lado a lado */

.register-fields-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 14px;
}

.register-fields-row > .form-group {
    min-width: 0;
}

/* Texto auxiliar do nome de usuário */

.form-help {
    display: block;
    margin-top: 7px;
    color: #70707a;
    font-size: 9px;
    line-height: 1.45;
}

/* Botão de cadastro */

.register-submit-button {
    margin-top: 4px;
}

/* Caixa que direciona novamente para o login */

.login-access-box {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.018)
        );
}

.register-honeypot {
    position: absolute !important;
    top: auto !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Tablets */

@media (max-width: 900px) {
    .register-form-content {
        max-width: none;
        padding: 40px 42px;
    }
}

/* Celulares */

@media (max-width: 620px) {
    .register-card {
        min-height: auto;
    }

    .register-form-content {
        padding: 34px 24px 30px;
    }

    .register-form-content .form-heading {
        margin-bottom: 26px;
    }

    .register-form-content .form-heading h2 {
        font-size: 25px;
    }

    .register-fields-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-form-content .form-group {
        margin-bottom: 17px;
    }

    .form-help {
        font-size: 9px;
    }
}

@media (max-width: 390px) {
    .register-form-content {
        padding-right: 19px;
        padding-left: 19px;
    }
}

/* Botão desativado durante o envio */

.login-button:disabled {
    cursor: wait;
    opacity: 0.72;
    filter: saturate(0.8);
    pointer-events: none;
}

.login-button:disabled:hover {
    transform: none;
    filter: saturate(0.8);
    box-shadow:
        0 13px 30px color-mix(in srgb, var(--ane-cor-padrao, #e91e53) 23%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}