body {
    height: 100%;
    margin: 0;
    color: #0f172a;
    overflow-x: hidden;
    overflow-y: hidden;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.08), transparent 26%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 30%),
        linear-gradient(135deg, #eef4fc 0%, #f8fbff 44%, #eaf1f9 100%);
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

#auth {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

#auth .row {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    align-items: stretch;
}

#auth .col-lg-5.col-12 {
    min-height: 100vh;
    min-height: 100dvh;
    flex: 1 1 auto;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 64px);
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 251, 255, 0.58)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(37, 99, 235, 0.04));
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.42);
}

#auth .col-lg-7.col-12.d-none.d-lg-block {
    flex: 0 0 auto;
    width: min(calc(100dvh * 1.25), 58vw);
    max-width: min(calc(100dvh * 1.25), 58vw);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
}

#auth #auth-right {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #102a57;
    background-image: url(/assets/images/img123.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#auth #auth-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.20), transparent 26%),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(90deg, rgba(8, 24, 52, 0.30) 0%, rgba(8, 24, 52, 0.10) 44%, rgba(8, 24, 52, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

#auth #auth-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(5, 15, 35, 0.16), rgba(5, 15, 35, 0.34)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 34%);
    pointer-events: none;
    z-index: 2;
}

#auth #auth-left {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    height: auto;
    padding: 0;
}

#auth #auth-left .auth-logo {
    margin-bottom: 1.15rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#auth #auth-left .auth-logo img {
    width: 141px;
    height: auto;
    max-height: 188px;
    object-fit: contain;
    object-position: center center;
    display: inline-block;
    border-radius: 30px;
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.74));
    border: 1px solid rgba(148, 163, 184, 0.16);
}

#auth #auth-left h1.auth-title {
    font-size: clamp(1.8rem, 2.05vw, 2.3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.3rem;
}

#auth #auth-left .auth-subtitle {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    max-width: 320px;
}

#auth #auth-left .mt-3 {
    margin-top: 0.7rem !important;
}

#auth #auth-left .form-group {
    margin-bottom: 0.7rem;
}

#auth #auth-left .form-control {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #d8e1ef;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 10px 20px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    padding-left: 3rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#auth #auth-left .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

#auth #auth-left .form-control-icon {
    color: #94a3b8;
}

#auth #auth-left .form-check {
    padding-left: 27px;
    margin-top: 0.25rem;
}

#auth #auth-left .form-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.35rem;
    border-color: #cbd5e1;
}

#auth #auth-left .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

#auth #auth-left .form-check-label {
    color: #475569;
    font-size: 0.95rem;
}

#auth #auth-left .btn {
    border: 0;
    border-radius: 14px;
    min-height: 46px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#auth #auth-left .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.20);
    filter: saturate(1.03);
}

#auth #auth-left .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0ea5e9 100%);
}

#auth #auth-left .btn-success {
    background: linear-gradient(135deg, #0f766e 0%, #0ea5a4 100%);
}

#auth #auth-left .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fb7185 100%);
    color: #fff;
}

#auth #auth-left .btn-info {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #fff;
}

#auth #auth-left .text-sublinhado {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

#auth #auth-left .text-sublinhado:hover {
    text-decoration: underline;
}

#auth #auth-left .div-recuperar-senha-sicok {
    margin-top: 0.95rem !important;
}

@media screen and (min-width: 768px) {
    #auth #auth-right, body.theme-dark #auth-right {
        background-position: center center;
        background-size: 100% 99%;
        margin-top: -16px;
    }

    #auth .row {
        overflow: hidden;
        flex-wrap: nowrap;
    }

    #auth .col-lg-5.col-12 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding: clamp(18px, 2.2vw, 34px);
    }

    #auth .col-lg-7.col-12.d-none.d-lg-block {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
        width: 66.666667%;
        max-width: 66.666667%;
    }

    #auth #auth-right::before,
    #auth #auth-right::after {
        background: transparent;
        opacity: 0;
    }
}

@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 100%;
    }

    html {
        overflow-x: hidden;
        overflow-y: auto;
    }

    #auth .row {
        flex-direction: column;
        min-height: auto;
    }

    #auth .col-lg-5.col-12 {
        width: 100%;
        min-height: auto;
        padding: 18px;
        order: 1;
    }

    #auth .col-lg-5.col-12::before {
        inset: 8px;
        border-radius: 24px;
    }

    #auth #auth-left {
        max-width: 100%;
    }

    #auth .col-lg-7.col-12.d-none.d-lg-block {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1.25 / 1;
        min-height: 260px;
        height: auto;
        order: 2;
    }

    #auth #auth-right {
        min-height: 260px;
        height: 100%;
        background-position: center bottom;
        background-size: contain;
    }

    #auth #auth-right::before,
    #auth #auth-right::after {
        background: transparent;
        opacity: 0;
    }

    #auth {
        overflow: visible;
    }
}

@media screen and (max-width: 576px) {
    #auth .col-lg-5.col-12 {
        padding: 14px;
    }

    #auth #auth-left .auth-logo img {
        width: 118px;
        height: 118px;
    }

    #auth #auth-left .form-control {
        height: 48px;
        border-radius: 13px;
    }

    #auth #auth-left h1.auth-title {
        font-size: 1.7rem;
    }

    #auth #auth-left .auth-subtitle {
        font-size: 0.94rem;
        line-height: 1.45;
    }

    #auth #auth-left .btn {
        min-height: 46px;
        border-radius: 13px;
    }

    #auth #auth-left .auth-logo {
        margin-bottom: 1rem;
    }

    #auth #auth-left .div-recuperar-senha-sicok {
        margin-top: 0.9rem !important;
    }
}

body.theme-dark {
    background: #0f172a;
}

body.theme-dark #auth-right {
    background-color: #102a57;
    background-image: url(/assets/images/img123.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
