html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background: #08192c;
    color: #f4f7fb;
}

.page-bg {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 19, 35, 0.94) 0%, rgba(5, 22, 39, 0.82) 36%, rgba(7, 24, 43, 0.36) 100%),
        url("/img/Background_novo.png") center center / cover no-repeat;
}

.page-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 24%, rgba(66, 119, 197, 0.16), transparent 24%),
        radial-gradient(circle at 68% 70%, rgba(236, 181, 84, 0.16), transparent 16%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 1500px;
    margin: 0 auto;
    padding: 42px 52px;
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.brand-panel {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 8px 18px 0 0;
    justify-content: flex-end;
}

.brand-stack {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeUp 0.85s ease-out both;
}

.brand-logo {
    display: block;
    width: 340px;
    max-width: 100%;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.brand-copy h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(46px, 5vw, 70px);
    line-height: 0.98;
    font-weight: 300;
    letter-spacing: -0.05em;
    color: #f8fbff;
}

.brand-copy h1 span {
    color: #eab657;
    font-weight: 700;
}

.brand-divider {
    width: 84px;
    height: 4px;
    margin: 26px 0 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d89f3d, #efc164);
    box-shadow: 0 0 18px rgba(234, 182, 87, 0.35);
}

.login-card {
    width: 56%;
    justify-self: end;
    align-self: center;
    margin-top: 0;
    min-height: 610px;
    padding: 28px 28px 34px;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background:
        linear-gradient(180deg, rgba(27, 50, 79, 0.50) 0%, rgba(10, 26, 45, 0.42) 100%);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: fadeUp 0.85s ease-out both;

}

.login-card.compact-card {
    min-height: 470px;
}

.login-card.medium-card {
    min-height: 560px;
}

.login-head {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.login-head-copy h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 700;
    color: #f7fbff;
}

.login-head-copy p {
    margin: 8px 0 0;
    color: rgba(225, 234, 243, 0.82);
    font-size: 13px;
}

.form-field,
.captcha-block {
    margin-bottom: 12px;
}

.form-field {
    width: 100%;
    max-width: 100%;
}

.form-field .input-shell {
    width: 100% !important;
    max-width: 100% !important;
}

.form-field label,
.captcha-title {
    display: block;
    margin: 0 0 7px;
    color: rgba(244, 247, 252, 0.95);
    font-size: 14px;
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(173, 194, 219, 0.34);
    background: rgba(7, 26, 45, 0.26);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-shell:focus-within {
    border-color: rgba(234, 182, 87, 0.92);
    box-shadow: 0 0 0 4px rgba(234, 182, 87, 0.10);
    transform: translateY(-1px);
}

.input-shell-captcha {
    margin-bottom: 10px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    opacity: 0.92;
}

.input {
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #f5f8fd;
    font-size: 15px;
}

.input::placeholder {
    color: rgba(215, 226, 239, 0.58);
}

.login-options {
    display: flex;
    justify-content: flex-end;
    margin: 2px 0 12px;
}

.forgot {
    color: #eab657;
    font-size: 13px;
    text-decoration: none;
}

.forgot:hover {
    opacity: 0.85;
}

.captcha-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(173, 194, 219, 0.24);
    background: rgba(7, 26, 45, 0.22);
    overflow: hidden;
}

.input-hint {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #ffb4b4;
    font-size: 12px;
}

.btn-login {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #d49a33, #ecb554 52%, #d79c35);
    color: #13283d;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(212, 154, 51, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(212, 154, 51, 0.34);
}

.login-footer {
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-text {
    margin: 0 0 10px;
    color: rgba(231, 238, 246, 0.82);
    font-size: 11px;
    text-align: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.footer-logos img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.icon-mail::before,
.icon-mail::after,
.icon-lock::before,
.icon-lock::after,
.icon-shield::before,
.icon-shield::after,
.icon-users::before,
.icon-users::after {
    content: "";
    position: absolute;
}

.icon-mail::before {
    left: 1px;
    top: 4px;
    width: 20px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    box-sizing: border-box;
}

.icon-mail::after {
    left: 4px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.96);
    border-bottom: 2px solid rgba(255, 255, 255, 0.96);
    border-bottom-left-radius: 10px;
    transform: rotate(-45deg) skew(-8deg, -8deg);
}

.icon-lock::before {
    left: 6px;
    top: 1px;
    width: 10px;
    height: 9px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.icon-lock::after {
    left: 4px;
    top: 9px;
    width: 14px;
    height: 11px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 3px;
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.02);
}

.icon-shield::before {
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    box-sizing: border-box;
}

.icon-shield::after {
    left: 8px;
    top: 7px;
    width: 6px;
    height: 8px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    box-sizing: border-box;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@media (max-width: 1180px) {
    .login-shell {
        grid-template-columns: 405px minmax(0, 1fr);
        padding: 28px;
        gap: 28px;
    }

    .brand-logo {
        width: 300px;
    }

    .brand-copy h1 {
        font-size: clamp(40px, 5vw, 58px);
    }

}

@media (max-width: 920px) {
    .login-shell {
        min-height: 100vh;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .brand-panel {
        min-height: auto;
        padding: 10px 0 0;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .brand-stack {
        max-width: 100%;
    }

    .login-card {
        min-height: auto;
        max-width: 520px;
        width: 100%;
        justify-self: start;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 18px 16px;
        gap: 20px;
    }

    .brand-logo {
        width: 240px;
        margin-bottom: 22px;
    }

    .brand-copy h1 {
        font-size: 38px;
    }

    .login-card {
        min-height: auto;
        padding: 24px 18px 24px;
        border-radius: 24px;
    }

    .login-head-copy h2 {
        font-size: 24px;
    }
}
