/* ==========================================
   VELTRIX - AUTH PREMIUM
   LOGIN + REGISTRO
   DESKTOP / TABLET / MOBILE
========================================== */

:root {
    --bg: #08090b;
    --card: #151619;
    --input: #202127;
    --border: #303138;
    --text: #ffffff;
    --muted: #a0a3ae;
    --gold: #f2bc58;
    --gold-hover: #e6ab40;
    --danger: #ff6975;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    overflow-x: hidden;
}

/* ==========================================
   BACKGROUND FIXO
========================================== */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -2;

    background-image: url('/assets/img/LogRegForm1.png');

    background-position: left center;
    background-repeat: no-repeat;

    background-size: 72% auto;

    pointer-events: none;
}

/* ESCURECIMENTO PROGRESSIVO */

body::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(8,9,11,.02) 0%,
        rgba(8,9,11,.10) 40%,
        rgba(8,9,11,.75) 63%,
        #08090b 78%,
        #08090b 100%
    );

    pointer-events: none;
}

/* ==========================================
   LAYOUT
========================================== */

.auth-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 58%)
        minmax(0, 42%);

    min-height: 100vh;
    min-height: 100dvh;

    width: 100%;
}

/* A IMAGEM AGORA ESTÁ NO BODY */

.auth-visual {
    min-height: 100%;
    background: transparent !important;
}

.auth-visual::after {
    display: none !important;
}

/* ==========================================
   FORMULÁRIO
========================================== */

.auth-content {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 45px 35px;

    position: relative;
    z-index: 2;
}

.auth-inner {
    width: 100%;
    max-width: 420px;
}

/* ==========================================
   LOGOTIPO
========================================== */

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand img {
    width: 245px;
    max-width: 85%;
    height: auto;
    object-fit: contain;
}

/* ==========================================
   CARD
========================================== */

.auth-card {
    width: 100%;

    background: rgba(21,22,25,.96);

    border: 1px solid var(--border);
    border-radius: 15px;

    padding: 30px 28px;

    box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.auth-title {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.5px;
    margin-bottom: 9px;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 26px;
}

/* ==========================================
   CAMPOS
========================================== */

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;

    font-size: 12px;
    font-weight: 650;

    color: #c3c5cd;

    margin-bottom: 9px;
}

.input-wrap {
    position: relative;
}

.form-control {
    display: block;

    width: 100%;
    height: 51px;

    background: var(--input);
    border: 1px solid transparent;

    border-radius: 9px;

    color: #fff;

    /* 16PX EVITA ZOOM AUTOMÁTICO NO IOS */
    font-size: 16px;

    padding: 0 15px;

    outline: none;

    transition:
        border-color .2s,
        background .2s;
}

.form-control:focus {
    border-color: var(--gold);
    background: #24252c;
}

.form-control::placeholder {
    color: #797c89;
}

.password-input {
    padding-right: 85px;
}

.show-password {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: #a0a3ae;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.input-hint {
    color: #898c98;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 7px;
}

/* ==========================================
   LINKS
========================================== */

.form-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin: 5px 0 25px;
}

.forgot-link {
    color: var(--gold);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.forgot-link:hover,
.register-area a:hover,
.login-area a:hover {
    text-decoration: underline;
}

/* ==========================================
   BOTÕES
========================================== */

.btn-login,
.btn-register {
    width: 100%;
    height: 51px;

    background: var(--gold);

    border: 0;
    border-radius: 9px;

    color: #111;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition: background .2s;
}

.btn-login:hover,
.btn-register:hover {
    background: var(--gold-hover);
}

.btn-login:disabled,
.btn-register:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ==========================================
   TERMOS
========================================== */

.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 22px 0;
}

.terms input {
    margin-top: 3px;
    accent-color: var(--gold);
    cursor: pointer;
}

.terms label {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.terms a {
    color: var(--gold);
    text-decoration: none;
}

/* ==========================================
   RODAPÉ DO CARD
========================================== */

.register-area,
.login-area {
    margin-top: 23px;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: var(--muted);
    font-size: 12px;
}

.register-area a,
.login-area a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer {
    margin-top: 25px;

    text-align: center;

    color: #777a85;

    font-size: 11px;
    line-height: 1.7;
}

/* ==========================================
   ERROS
========================================== */

.alert {
    padding: 13px 14px;
    margin-bottom: 22px;

    background: rgba(255,105,117,.08);
    border: 1px solid rgba(255,105,117,.28);

    border-radius: 9px;

    color: var(--danger);

    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 1100px) {

    body::before {
        background-size: 85% auto;
    }

    .auth-layout {
        grid-template-columns:
            minmax(0, 50%)
            minmax(0, 50%);
    }

    .auth-content {
        padding: 35px 22px;
    }
}

/* ==========================================
   CELULARES
========================================== */

@media (max-width: 760px) {

    body::before {
        background-size: auto 48%;
        background-position: center top;
        opacity: .22;
    }

    body::after {
        background: linear-gradient(
            180deg,
            rgba(8,9,11,.65) 0%,
            #08090b 48%,
            #08090b 100%
        );
    }

    .auth-layout {
        display: block;
    }

    .auth-visual {
        display: none;
    }

    .auth-content {
        min-height: 100vh;
        min-height: 100dvh;

        padding: 35px 18px;
    }

    .auth-inner {
        max-width: 430px;
    }

    .brand {
        margin-bottom: 25px;
    }

    .brand img {
        width: 225px;
    }

    .auth-card {
        padding: 26px 21px;
    }
}

/* ==========================================
   CELULARES PEQUENOS
========================================== */

@media (max-width: 380px) {

    .auth-content {
        padding: 25px 13px;
    }

    .auth-card {
        padding: 23px 17px;
    }

    .auth-title {
        font-size: 22px;
    }

    .brand img {
        width: 205px;
    }
}

/* ==========================================
   ACESSIBILIDADE
========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* REDUZIR ZOOM POR DUPLO TOQUE */

html,
body,
.auth-layout,
.auth-content,
.auth-card,
button,
a,
input,
label {
    touch-action: manipulation;
}

/* IMPEDIR ZOOM AUTOMÁTICO AO FOCAR INPUTS NO IOS */

input,
select,
textarea {
    font-size: 16px !important;
}

/* ==========================================
   VELTRIX - BACKGROUND FULLSCREEN
   LOGIN + REGISTRO
========================================== */

/* BACKGROUND PRINCIPAL */

html {
    min-height: 100%;
    background: #08090b;
}

body {
    min-height: 100vh;
    min-height: 100dvh;

    background: #08090b !important;

    position: relative;
    isolation: isolate;
}

/* IMAGEM OCUPANDO TODA A TELA */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background-image: url('/assets/img/LogRegForm1.png');

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    opacity: 1;

    z-index: -2;

    pointer-events: none;
}

/* CAMADA ESCURA PARA LEGIBILIDADE */

body::after {
    content: "";

    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 48%,
        rgba(0,0,0,.35) 65%,
        rgba(0,0,0,.72) 82%,
        rgba(0,0,0,.82) 100%
    );

    z-index: -1;

    pointer-events: none;
}

/* LAYOUT SOBREPOSTO */

.auth-layout {
    display: grid;

    grid-template-columns: 58% 42%;

    min-height: 100vh;
    min-height: 100dvh;

    width: 100%;

    background: transparent !important;
}

/* REMOVER A ANTIGA IMAGEM LATERAL */

.auth-visual {
    background: transparent !important;
    background-image: none !important;
}

.auth-visual::after {
    display: none !important;
}

/* FORMULÁRIO SOBRE A IMAGEM */

.auth-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;

    padding: 35px;
}

/* CARD PREMIUM */

.auth-card {
    background: rgba(21,22,25,.96);

    border: 1px solid rgba(255,255,255,.12);

    box-shadow: 0 20px 70px rgba(0,0,0,.35);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    .auth-layout {
        grid-template-columns: 50% 50%;
    }

    .auth-content {
        padding: 25px;
    }

}

/* ==========================================
   CELULAR
========================================== */

@media (max-width: 760px) {

    body::before {
        background-position: 38% center;
        background-size: cover;
        opacity: .35;
    }

    body::after {
        background: rgba(8,9,11,.65);
    }

    .auth-layout {
        display: block;
    }

    .auth-visual {
        display: none !important;
    }

    .auth-content {
        min-height: 100vh;
        min-height: 100dvh;

        padding: 30px 16px;
    }

    .auth-inner {
        width: 100%;
        max-width: 430px;
    }

    .auth-card {
        padding: 25px 20px;
    }

}

/* ==========================================
   EVITAR ZOOM POR DUPLO TOQUE
========================================== */

html,
body,
button,
a,
input,
label {
    touch-action: manipulation;
}

input,
select,
textarea {
    font-size: 16px !important;
}