* {
    box-sizing: border-box;
}

:root {
    --blue: #0b84ff;
    --blue-dark: #0a5dac;
    --green: #54d081;
    --white: #ffffff;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.18);
    --font-main: 'Inter', 'Obviously', sans-serif;
    --fc-logo-width: 132px;
}

body {
    font-family: var(--font-main);
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #101415;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Obviously', sans-serif;
}

/* Regular */
@font-face {
    font-family: 'Obviously';
    src: url('fonts/fonnts.com-Obviously.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'Obviously';
    src: url('fonts/fonnts.com-Obviously_Medi.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Semi */
@font-face {
    font-family: 'Obviously';
    src: url('fonts/fonnts.com-Obviously_Semi.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Obviously';
    src: url('fonts/fonnts.com-Obviously_Bold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.logo,
.logo_dark {
    display: none;
    width: var(--fc-logo-width);
}

/* DARK MODE */
html.dark .logo_dark {
    display: block;
}

html.dark .logo {
    display: none;
}

/* LIGHT MODE */
html:not(.dark) .logo {
    display: block;
}

html:not(.dark) .logo_dark {
    display: none;
}

.auth-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(16, 20, 21, 0.72);
    backdrop-filter: blur(8px);
}

.auth-loading.is-active {
    display: flex;
}

.auth-loading-box {
    width: 260px;
    min-height: 220px;
    border-radius: 28px;
    background: #202526;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    text-align: center;
    padding: 30px;
}

html:not(.dark) .auth-loading-box {
    background: #fff;
    color: #111516;
}

.auth-spinner {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 5px solid rgba(19, 148, 255, .18);
    border-top-color: #1394ff;
    animation: authSpin .8s linear infinite;
}

.auth-loading-box strong {
    font-size: 22px;
    font-weight: 800;
}

.auth-loading-box span {
    color: #8d9499;
    font-size: 14px;
    font-weight: 600;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

.auth-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
}

.auth-toast {
    min-width: 340px;
    max-width: 420px;
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: .35s ease;
    pointer-events: all;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

/* animação */
.auth-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* =========================
   DARK MODE
========================= */

html.dark .auth-toast-success {
    background: #16281d;
    border: 1px solid rgba(44, 224, 128, .18);
}

html.dark .auth-toast-error {
    background: #2a171b;
    border: 1px solid rgba(255, 91, 119, .16);
}

html.dark .auth-toast-warning {
    background: #2b2415;
    border: 1px solid rgba(255, 198, 64, .14);
}

/* =========================
   LIGHT MODE
========================= */

html:not(.dark) .auth-toast-success {
    background: #ffffff;
    border: 1px solid #d7f5e4;
}

html:not(.dark) .auth-toast-error {
    background: #ffffff;
    border: 1px solid #ffd8df;
}

html:not(.dark) .auth-toast-warning {
    background: #ffffff;
    border: 1px solid #ffe8b3;
}

/* =========================
   ÍCONE
========================= */

.auth-toast-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.auth-toast-success .auth-toast-icon {
    background: rgba(44, 224, 128, .12);
    color: #2ce080;
}

.auth-toast-error .auth-toast-icon {
    background: rgba(255, 91, 119, .12);
    color: #ff5b77;
}

.auth-toast-warning .auth-toast-icon {
    background: rgba(255, 198, 64, .14);
    color: #ffc640;
}

/* =========================
   TEXTO
========================= */

.auth-toast-content {
    flex: 1;
}

.auth-toast-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-toast-message {
    font-size: 13px;
    line-height: 1.5;
}

/* DARK */
html.dark .auth-toast-title {
    color: #fff;
}

html.dark .auth-toast-message {
    color: #aab3b8;
}

/* LIGHT */
html:not(.dark) .auth-toast-title {
    color: #111827;
}

html:not(.dark) .auth-toast-message {
    color: #4b5563;
}

/* MOBILE */
@media (max-width: 767px) {

    .auth-toast-container {
        left: 16px;
        right: 16px;
        top: 16px;
    }

    .auth-toast {
        min-width: 100%;
        max-width: 100%;
    }
}


.auth-body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    overflow: hidden;
}

.auth-page {
    height: calc(100vh - 52px);
    margin: 26px;
    background: #101415;
    overflow: hidden;
    border-radius: 16px;
}

.auth-logo img {
    width: var(--fc-logo-width);
    display: block;
}

.auth-panel {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.auth-panel-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.auth-logo {
    position: absolute;
    top: 42px;
    left: 42px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    font-size: 24px;
}

html:not(.dark) .auth-logo {
    color: #111516;
}

@media (max-width: 767px) {
    html:not(.dark) .auth-logo {
        color: #fff;
    }
}

.auth-logo i {
    color: #1394ff;
    font-size: 34px;
}

.theme-toggle {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #202526;
    color: #fff;
    cursor: pointer;
}

html:not(.dark) .theme-toggle {
    background: #f1f5f9;
    color: #111516;
}

.auth-slider {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform .5s ease;
}

.auth-slider.is-forgot {
    transform: translateX(-50%);
}

.auth-slide {
    width: 50%;
    height: 100%;
    padding: 180px 42px 40px;
}

.auth-form-box {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.auth-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.auth-title-row h1,
.forgot-title {
    font-size: 30px;
font-style: normal;
font-weight: 560;
line-height: 40px; /* 133.333% */
letter-spacing: -0.4px;
}

.auth-link {
    border: 0;
    background: transparent;
    color: #1394ff;
    font-size: 28px;
    font-weight: 800;
    cursor: pointer;
}

.auth-input {
    width: 100%;
    height: 82px;
    border: 0;
    border-radius: 18px;
    background: #202526;
    color: #fff;
    padding: 0 34px;
    font-size: 28px;
    font-weight: 700;
    outline: none;
    margin-bottom: 30px;
}

.auth-input::placeholder {
    color: #858c91;
}

.password-box {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 28px;
    height: 82px;
    border: 0;
    background: transparent;
    color: #8d9499;
    font-size: 30px;
    cursor: pointer;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #858c91;
    font-size: 24px;
    font-weight: 800;
}

.remember-row input {
    width: 30px;
    height: 30px;
    accent-color: #1394ff;
}

.auth-submit {
    width: calc(100% - 84px);
    height: 88px;
    border: 0;
    border-radius: 22px;
    background: #1394ff;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
}

html:not(.dark) .auth-submit-login {
    background: linear-gradient(135deg, #1394ff 0%, #0b84ff 100%);
    color: #ffffff;
}

html:not(.dark) .auth-submit-login:active {
    transform: scale(.985);
}



.auth-label {
    display: block;
    color: #d4d8da;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.forgot-input {
    background: transparent;
    border: 4px solid #343b3d;
}

.forgot-submit {
    position: fixed;
    left: 72px;
    right: 72px;
    bottom: 170px;
}

.back-login {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 90px;
    text-align: center;
}

/* Ilustração desktop */
.auth-illustration {
    display: none;
    text-align: center;
}

.auth-illustration-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop */
@media (min-width: 768px) {

    .auth-page {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 0;
        max-width: none;
        margin: 26px;
    }

    .auth-illustration {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 0;
        overflow: hidden;
        height: 100%;
        background: #101415;
    }

    .auth-illustration-content {
        width: 86%;
        height: min(86%, 900px);
    }

    .auth-illustration img {
        width: 100%;
        max-width: none;
        max-height: 100%;
        object-fit: contain;
    }

    .dark .auth-illustration {
        background: #202526;
    }



    html:not(.dark) .auth-panel {
        background: #fff;
    }

    .auth-panel {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-panel-content {
        width: min(70%, 760px);
        height: min(82%, 824px);
    }

    .auth-logo {
        top: 0;
        left: 0;
    }

    .auth-slide {
        padding: 0;
        display: flex;
        align-items: center;
    }

    .auth-form-box {
        max-width: none;
        width: 100%;
        padding: 0 18px;
    }

    .auth-title-row {
        margin-bottom: 62px;
    }

    .auth-title-row h1,
    .forgot-title {
        color: #111516;
        font-size: 30px;
        font-style: normal;
        font-weight: 560;
        line-height: 40px; /* 133.333% */
        letter-spacing: -0.4px;
    }

    .forgot-title {
        margin-bottom: 62px;
    }

    html.dark .auth-title-row h1,
    html.dark .forgot-title {
        color: #fff;
    }

    .auth-link {
        font-size: 14px;
    }

    .auth-input {
        height: 64px;
        border-radius: 10px;
        padding: 0 22px;
        font-size: 17px;
        margin-bottom: 22px;
        background: #f3f6f8;
        color: #111516;
    }

    html.dark .auth-input {
        background: #202526;
        color: #fff;
    }

    .password-toggle {
        height: 64px;
        font-size: 24px;
        right: 18px;
    }

    .remember-row {
        gap: 12px;
        font-size: 14px;
        margin-bottom: 64px;
    }

    .remember-row input {
        width: 16px;
        height: 16px;
    }

    .auth-submit,
    .auth-submit-login,
    .forgot-submit {
        position: static;
        width: 100%;
        height: 68px;
        border-radius: 12px;
        font-size: 14px;
        background: #1394ff;
        color: #fff;
    }

    .auth-submit-login {
        background: #1394ff;
    }

    html.dark .auth-submit-login {
        background: linear-gradient(135deg, #1394ff 0%, #0a74db 100%);
        color: #ffffff;

        
    }

    html.dark .auth-submit-login:hover {
        transform: translateY(-1px);

        
    }

    html.dark .auth-submit-login:active {
        transform: scale(.985);
    }

    .auth-label {
        color: #111516;
        font-size: 14px;
        margin-bottom: 18px;
    }

    html.dark .auth-label {
        color: #d4d8da;
    }

    .forgot-input {
        background: transparent;
        border: 1px solid #d5dde2;
    }

    html.dark .forgot-input {
        border-color: #343b3d;
    }

    .back-login {
        position: static;
        display: block;
        margin: 38px auto 0;
        font-size: 14px;
    }
}

/* MOBILE AJUSTES */
@media (max-width: 767px) {

    body,
    .auth-body {
        overflow: hidden;
    }

    .auth-page {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        overflow: hidden;
    }

    .auth-panel {
        height: 100vh;
        overflow: hidden;
        border-radius: 0;
    }

    .auth-slider {
        height: 100vh;
        overflow: visible;
    }

    .auth-slide {
        position: relative;
        height: 100vh;
        padding: 145px 24px 24px;
        overflow: hidden;
    }

    .auth-form-box {
        max-width: 100%;
        height: 100%;
        position: relative;
        padding: 0 6px;
    }

    .auth-logo {
        top: 24px;
        left: 24px;
        transform: none;
    }

    .logo,
    .logo_dark {
        width: 170px;
    }

    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .auth-title-row {
        margin-bottom: 28px;
        align-items: center;
        gap: 12px;
    }

    .auth-title-row h1 {
        font-size: 28px;
        line-height: 1;
    }

    .forgot-title {
        font-size: 28px;
        line-height: 1.05;
        margin-bottom: 40px;
        max-width: 280px;
    }

    .theme-toggle {
        display: none;
    }

    .auth-link {
        font-size: 14px;
        white-space: nowrap;
    }

    .auth-label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .auth-input {
        height: 62px;
        font-size: 16px;
        border-radius: 16px;
        padding: 0 22px;
        margin-bottom: 20px;
    }

    .forgot-input {
        height: 62px;
        border-radius: 16px;
        border-width: 3px;
        margin-bottom: 0;
    }

    .password-toggle {
        height: 62px;
        right: 22px;
        font-size: 20px;
    }

    .remember-row {
        gap: 12px;
        font-size: 14px;
        margin-top: 6px;
    }

    .remember-row input {
        width: 20px;
        height: 20px;
    }

    .auth-submit {
        height: 64px;
        border-radius: 18px;
        font-size: 15px;
    }

    /*
     * IMPORTANTE:
     * no mobile não usar position: fixed,
     * porque o botão da segunda tela aparece na primeira.
     */
    .auth-submit-login,
    .forgot-submit,
    .back-login {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
    }

    .auth-submit-login {
        bottom: 24px;
    }

    .forgot-submit {
        bottom: 105px;
    }

    .back-login {
        bottom: 54px;
        text-align: center;
        font-size: 15px;
    }

    .forgot-submit {
        background: #1394ff;
        color: #fff;
    }
}
