body {
    font-family: "Roboto", sans-serif;
    background: #f4f9fd;
    color: #15354b;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

html:has(body.register-page),
body.register-page {
    overscroll-behavior-y: none;
}

body::before,
body::after {
    border-radius: 50%;
    content: "";
    filter: blur(8px);
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

body::before {
    background: rgba(22, 213, 255, .15);
    height: 28rem;
    right: -9rem;
    top: -10rem;
    width: 28rem;
}

body::after {
    background: rgba(255, 193, 7, .12);
    bottom: -10rem;
    height: 24rem;
    left: -8rem;
    width: 24rem;
}

.action-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .12), transparent 28%),
        rgba(8, 12, 36, .66);
    backdrop-filter: blur(4px);
    transition: opacity .22s ease, visibility .22s ease;
}

.action-loading-overlay.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.action-loading-card {
    position: relative;
    display: grid;
    width: 154px;
    height: 154px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .98) 0 34%, rgba(255, 255, 255, .72) 35% 43%, transparent 44%),
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .5), transparent 33%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .28),
        0 0 0 1px rgba(255, 255, 255, .22) inset;
    animation: actionLoadingFloat 2.4s ease-in-out infinite;
}

.action-loading-mark {
    position: relative;
    width: 118px;
    height: 118px;
    border-radius: 50%;
}

.action-loading-mark::before {
    content: "";
    position: absolute;
    inset: 23px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, #ffffff 0 12%, transparent 13%),
        conic-gradient(from 220deg, #0099f7, #00a650, #fff200, #ff8c00, #f9158f, #5b1b91, #0099f7);
    box-shadow:
        0 11px 22px rgba(249, 21, 143, .24),
        0 0 32px rgba(0, 153, 247, .2);
    animation: actionLoadingCore 1.45s ease-in-out infinite;
}

.action-loading-mark::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, transparent 0deg, transparent 38deg, #0099f7 48deg, transparent 68deg, transparent 101deg, #f9158f 114deg, transparent 136deg, transparent 182deg, #fff200 198deg, transparent 222deg, transparent 258deg, #00a650 274deg, transparent 298deg, transparent 330deg, #ff4b00 344deg, transparent 360deg);
    -webkit-mask:
        radial-gradient(circle, transparent 0 40px, #000 41px 52px, transparent 53px);
    mask:
        radial-gradient(circle, transparent 0 40px, #000 41px 52px, transparent 53px);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .34));
    animation: actionLoadingOrbit 1.15s linear infinite;
}

.action-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(from 90deg, #0099f7 0 48deg, transparent 54deg 84deg, #f9158f 92deg 144deg, transparent 150deg 178deg, #fff200 188deg 232deg, transparent 238deg 265deg, #00a650 274deg 318deg, #ff4b00 328deg 360deg);
    -webkit-mask:
        radial-gradient(circle, transparent 0 48px, #000 49px 58px, transparent 59px);
    mask:
        radial-gradient(circle, transparent 0 48px, #000 49px 58px, transparent 59px);
    animation: actionLoadingRing 1.8s cubic-bezier(.55, .02, .2, .98) infinite;
}

.action-loading-splash {
    position: absolute;
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    box-shadow: 0 0 18px currentColor;
    animation: actionLoadingSplash 1.6s ease-in-out infinite;
}

.action-loading-splash-1 {
    top: 7px;
    left: 78px;
    color: #ff4b00;
    background: currentColor;
}

.action-loading-splash-2 {
    right: 7px;
    bottom: 34px;
    color: #f9158f;
    width: 10px;
    height: 24px;
    background: currentColor;
    transform: rotate(35deg);
    animation-delay: -.35s;
}

.action-loading-splash-3 {
    bottom: 9px;
    left: 25px;
    color: #00a650;
    width: 28px;
    height: 8px;
    background: currentColor;
    transform: rotate(-24deg);
    animation-delay: -.7s;
}

body.is-action-loading {
    cursor: progress;
}

@keyframes actionLoadingFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.03);
    }
}

@keyframes actionLoadingCore {
    0%,
    100% {
        transform: scale(.94) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(10deg);
    }
}

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

@keyframes actionLoadingRing {
    0% {
        transform: rotate(0deg) scale(.96);
    }

    50% {
        transform: rotate(210deg) scale(1.08);
    }

    100% {
        transform: rotate(360deg) scale(.96);
    }
}

@keyframes actionLoadingSplash {
    0%,
    100% {
        opacity: .55;
        scale: .8;
    }

    50% {
        opacity: 1;
        scale: 1.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action-loading-card,
    .action-loading-mark::before,
    .action-loading-mark::after,
    .action-loading-ring,
    .action-loading-splash {
        animation: none;
    }
}

/* Mantém os botões do cadastro no mesmo formato cápsula usado no login. */
.auth-register .auth-actions .register-pill-btn {
    background-position: 0 50%;
    background-size: 160% 100%;
    border-radius: 9999px !important;
    box-shadow: 0 6px 16px rgba(18, 91, 135, .2), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
    height: 50px !important;
    min-height: 50px;
    overflow: hidden;
    position: relative;
    transition: background-position .35s ease, box-shadow .3s ease, transform .25s ease;
}

.auth-register .auth-actions .register-pill-btn.btn-primary {
    background-image: linear-gradient(105deg, #087fe5, #13b8e5 55%, #20d5d7) !important;
    border: 0;
}

.auth-register .auth-actions .register-pill-btn.btn-secondary {
    background-image: linear-gradient(105deg, #657985, #81919a 55%, #9daab0) !important;
    border: 0;
}

.auth-register .auth-actions .register-pill-btn::before {
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .48) 50%, transparent 75%);
    content: "";
    height: 100%;
    left: -75%;
    position: absolute;
    top: 0;
    transform: skewX(-20deg);
    transition: left .55s ease;
    width: 42%;
}

.auth-register .auth-actions .register-pill-btn:hover,
.auth-register .auth-actions .register-pill-btn:focus-visible {
    background-position: 100% 50%;
    box-shadow: 0 9px 22px rgba(18, 91, 135, .27) !important;
    transform: translateY(-2px);
}

.auth-register .auth-actions .register-pill-btn:hover::before,
.auth-register .auth-actions .register-pill-btn:focus-visible::before {
    left: 135%;
}

.auth-register .auth-actions .register-pill-btn:active {
    box-shadow: 0 3px 9px rgba(18, 91, 135, .2) !important;
    transform: translateY(0) scale(.98);
}

p {
    color: #b3b3b3;
    font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Roboto", sans-serif;
}

a {
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
}
a:hover {
    text-decoration: none !important;
}

.content {
    align-items: center;
    display: flex;
    min-height: 100vh;
    padding: 3rem 0;
}

.auth-shell {
    max-width: 1040px;
}

.auth-layout {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(18, 75, 112, .14);
    margin: 0;
    overflow: hidden;
}

.auth-panel {
    align-items: center;
    display: flex;
    padding: 3.25rem 2rem;
}

.auth-panel > .row {
    width: 100%;
}

.auth-card {
    animation: authCardIn .65s ease both;
}

.auth-heading h3 {
    color: #155b85;
    font-size: 1.65rem;
    letter-spacing: -.02em;
    margin-bottom: .65rem;
}

.auth-heading p {
    color: #78909f;
    line-height: 1.55;
}

.auth-visual {
    align-items: center;
    background: linear-gradient(145deg, rgba(224, 247, 255, .92), rgba(244, 252, 255, .65) 55%, rgba(255, 244, 205, .5));
    display: flex;
    justify-content: center;
    min-height: 590px;
    overflow: hidden;
    padding: 3rem;
    position: relative;
}

.auth-visual::before,
.auth-visual::after {
    border: 1px solid rgba(22, 181, 225, .22);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.auth-visual::before {
    height: 18rem;
    width: 18rem;
}

.auth-visual::after {
    height: 23rem;
    width: 23rem;
}

.auth-visual img {
    animation: authImageFloat 4.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.auth-register .auth-panel {
    align-items: flex-start;
}

.auth-register .auth-visual {
    min-height: 900px;
}

.auth-card .form-group {
    margin-bottom: 1.15rem !important;
}

.content .auth-card .form-group label {
    color: #31566e;
    font-size: .86rem;
    font-weight: 600 !important;
    margin-bottom: .42rem;
    position: static;
    transform: none;
}

.content .auth-card .form-group.field--not-empty label {
    margin-top: 0;
}

.content .auth-card .form-control {
    background: #fbfdff;
    border: 1px solid #d6e2ea;
    border-radius: 12px;
    color: #17384e;
    font-size: 1rem;
    min-height: 48px;
    padding: .7rem .9rem;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.content .auth-card .form-control:focus {
    background: #fff;
    border-color: #20bfe4;
    box-shadow: 0 0 0 4px rgba(32, 191, 228, .13);
    transform: translateY(-1px);
}

.content .auth-card .form-control[readonly] {
    background: #f2f7fa;
    color: #587083;
}

.auth-actions {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.75rem;
    width: 100%;
}

.content .auth-actions .auth-btn {
    align-items: center;
    background-size: 160% 100%;
    border: 0;
    border-radius: 999px !important;
    box-shadow: 0 6px 16px rgba(18, 91, 135, .2), inset 0 1px 0 rgba(255, 255, 255, .35);
    display: flex;
    font-weight: 600;
    height: 50px;
    justify-content: center;
    padding: .65rem 1rem;
    overflow: hidden;
    position: relative;
    transition: background-position .35s ease, box-shadow .3s ease, transform .25s ease;
    width: 100%;
}

.content .auth-actions .btn-primary {
    background-image: linear-gradient(105deg, #087fe5, #13b8e5 55%, #20d5d7);
}

.content .auth-actions .btn-secondary {
    background-image: linear-gradient(105deg, #657985, #81919a 55%, #9daab0);
}

.content .auth-actions .auth-btn::before {
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .48) 50%, transparent 75%);
    content: "";
    height: 100%;
    left: -75%;
    position: absolute;
    top: 0;
    transform: skewX(-20deg);
    transition: left .55s ease;
    width: 42%;
}

.content .auth-actions .auth-btn:hover,
.content .auth-actions .auth-btn:focus-visible {
    background-position: 100% 50%;
    box-shadow: 0 9px 22px rgba(18, 91, 135, .27);
    transform: translateY(-2px);
}

.content .auth-actions .auth-btn:hover::before,
.content .auth-actions .auth-btn:focus-visible::before {
    left: 135%;
}

.content .auth-actions .auth-btn:active {
    transform: translateY(0) scale(.98);
}

.auth-card .forgot-pass {
    color: #177cae;
    font-weight: 500;
    text-decoration-color: rgba(23, 124, 174, .35);
    text-underline-offset: 4px;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authImageFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

h2 {
    font-size: 20px;
}

@media (max-width: 991.98px) {
    .content .bg {
        height: 500px;
    }
}

.content .contents,
.content .bg {
    width: 50%;
}
@media (max-width: 1199.98px) {
    .content .contents,
    .content .bg {
        width: 100%;
    }
}
.content .contents .form-group,
.content .bg .form-group {
    position: relative;
}
.content .contents .form-group label,
.content .bg .form-group label {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
}
.content .contents .form-group input,
.content .bg .form-group input {
    background: transparent;
    border-bottom: 1px solid #ccc;
}
.content .contents .form-group.first,
.content .bg .form-group.first {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}
.content .contents .form-group.last,
.content .bg .form-group.last {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}
.content .contents .form-group label,
.content .bg .form-group label {
    font-size: 12px;
    display: block;
    margin-bottom: 0;
    color: #b3b3b3;
}
.content .contents .form-group.focus,
.content .bg .form-group.focus {
    background: #fff;
}
.content .contents .form-group.field--not-empty label,
.content .bg .form-group.field--not-empty label {
    margin-top: -25px;
}
.content .contents .form-control,
.content .bg .form-control {
    border: none;
    padding: 0;
    font-size: 20px;
    border-radius: 0;
}
.content .contents .form-control:active,
.content .contents .form-control:focus,
.content .bg .form-control:active,
.content .bg .form-control:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.content .bg {
    background-size: cover;
    background-position: center;
}

.content a {
    color: #888;
    text-decoration: underline;
}

.content .btn {
    height: 54px;
    padding-left: 30px;
    padding-right: 30px;
}

.content .forgot-pass {
    position: relative;
    top: 2px;
    font-size: 14px;
}

.social-login a {
    text-decoration: none;
    position: relative;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
}
.social-login a span {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.social-login a:hover {
    color: #fff;
}
.social-login a.facebook {
    background: #3b5998;
}
.social-login a.facebook:hover {
    background: #344e86;
}
.social-login a.twitter {
    background: #1da1f2;
}
.social-login a.twitter:hover {
    background: #0d95e8;
}
.social-login a.instagram {
    background: #ea4335;
}
.social-login a.instagram:hover {
    background: #e82e1e;
}

.control {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px;
}
.control .caption {
    position: relative;
    top: 0.2rem;
    color: #888;
}

.control input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.control__indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #e6e6e6;
    border-radius: 4px;
}

.control--radio .control__indicator {
    border-radius: 50%;
}

.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
    background: #ccc;
}

.control input:checked ~ .control__indicator {
    background: #38d39f;
}

.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
    background: #4dd8a9;
}

.control input:disabled ~ .control__indicator {
    background: #e6e6e6;
    opacity: 0.9;
    pointer-events: none;
}

.control__indicator:after {
    font-family: "icomoon";
    content: "\e5ca";
    position: absolute;
    display: none;
    font-size: 16px;
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

.control input:checked ~ .control__indicator:after {
    display: block;
    color: #fff;
}

.control--checkbox .control__indicator:after {
    top: 50%;
    left: 50%;
    margin-top: -1px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.control--checkbox input:disabled ~ .control__indicator:after {
    border-color: #7b7b7b;
}

.control--checkbox input:disabled:checked ~ .control__indicator {
    background-color: #7e0cf5;
    opacity: 0.2;
}

.img-login {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.auth-login .img-login {
    max-height: 330px;
    max-width: 78%;
}

.auth-register .img-reg {
    max-height: 520px;
    max-width: 88%;
}

@media (min-width: 768px) {
    .content .auth-layout > .auth-panel,
    .content .auth-layout > .auth-visual {
        width: 50%;
    }
}

@media (max-width: 991.98px) {
    .box-reg {
        margin-bottom: 20px;
    }

    .img-login {
        max-height: 160px;
    }
}

@media (max-width: 767.98px) {
    .content {
        align-items: flex-start;
        padding: 1rem 0;
    }

    body.register-page {
        min-height: auto;
    }

    body.register-page .content {
        min-height: auto;
        padding-bottom: 1rem;
    }

    body.register-page .auth-layout,
    body.register-page .auth-shell {
        height: auto;
        min-height: 0;
    }

    .auth-shell {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .auth-layout {
        border-radius: 22px;
    }

    .auth-panel {
        padding: 2rem 1.1rem 2.35rem;
        width: 100%;
    }

    .auth-visual,
    .auth-register .auth-visual {
        margin-bottom: 0;
        min-height: 210px;
        padding: 1.5rem;
        width: 100%;
    }

    .auth-visual::before {
        height: 10rem;
        width: 10rem;
    }

    .auth-visual::after {
        height: 13rem;
        width: 13rem;
    }

    .auth-login .img-login,
    .auth-register .img-reg {
        max-height: 155px;
        max-width: 62%;
    }

    .auth-heading h3 {
        font-size: 1.45rem;
    }

    .auth-actions {
        gap: .75rem;
    }

    .content .auth-actions .auth-btn {
        font-size: .92rem;
        padding-left: .65rem;
        padding-right: .65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .auth-visual img {
        animation: none;
    }

    .content .auth-actions .auth-btn,
    .content .auth-actions .auth-btn::before {
        transition: none;
    }
}
