:root {
    --brand-primary: #1155dc;
    --brand-primary-dark: #0b3fb8;
    --brand-accent: #00a99d;
    --brand-accent-soft: #e1fbf7;
    --panel-background: none;
    --text-main: #111827;
    --text-muted: #64748b;
    --border-soft: #d8e2ef;
    --surface: #ffffff;
    --shadow-soft: 0 24px 64px rgba(15, 23, 42, .10);
}

* {
    box-sizing: border-box;
}

html,
body {
    font-size: .925rem;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--text-main);
    background: #fff;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(390px, 42%);
}

.promo-panel,
.auth-panel {
    position: relative;
    min-height: 100vh;
}

.promo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 58px);
    overflow: hidden;
    background-image: var(--panel-background);
    background-size: cover;
    background-position: center;
}

.promo-card {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    padding: clamp(26px, 3vw, 44px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.promo-copy {
    max-width: 720px;
}

.promo-card h1 {
    margin: 0 0 12px;
    font-size: clamp(2.15rem, 3.2vw, 3.65rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -.045em;
    color: #172033;
    text-wrap: balance;
}

.promo-card h1 span {
    color: var(--brand-accent);
}

.promo-text {
    max-width: 690px;
    margin: 0 0 24px;
    color: #2f3a4c;
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.45;
    font-weight: 450;
}

.promo-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .13);
    background: #e2e8f0;
}

.promo-figure img {
    display: block;
    width: 100%;
    height: clamp(285px, 31vw, 405px);
    object-fit: cover;
    object-position: center;
}

.promo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.promo-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    min-width: 0;
    padding-right: 18px;
    border-right: 1px solid var(--border-soft);
}

.promo-feature:last-child {
    border-right: 0;
    padding-right: 0;
}

.feature-icon {
    font-size: 19px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-accent), #16c8bf);
    box-shadow: 0 10px 22px rgba(0, 169, 157, .18);
}

.promo-feature strong {
    display: block;
    margin-bottom: 5px;
    font-size: .92rem;
    line-height: 1.2;
}

.promo-feature p {
    margin: 0;
    color: #475569;
    font-size: .86rem;
    line-height: 1.35;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 64px);
    background:
        radial-gradient(circle at center 18%, rgba(17, 85, 220, .045), transparent 26%),
        #fff;
}

.auth-card {
    width: min(470px, 100%);
}

.auth-header {
    margin-bottom: 24px;
}

.auth-logo {
    display: block;
    width: min(188px, 58%);
    max-height: 150px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 18px;
}

.brand-logo-text {
    margin: 0 0 18px;
    font-weight: 850;
    letter-spacing: .04em;
    color: var(--brand-primary-dark);
}

.auth-header h2 {
    position: relative;
    margin: 0;
    font-size: clamp(1.35rem, 1.65vw, 1.72rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.auth-header h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 13px auto 0;
    border-radius: 999px;
    background: var(--brand-accent);
}

.login-form {
    max-width: 360px;
    margin: 0 auto;
}

.form-label {
    margin-bottom: 6px;
    font-size: .88rem;
    font-weight: 750;
    color: #1e293b;
}

.input-icon-group {
    position: relative;
}

.input-icon-group>i {
    position: absolute;
    top: 50%;
    left: 15px;
    font-size: 17px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.input-icon-group .form-control {
    height: 48px;
    padding-left: 44px;
    border-color: #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: .95rem;
    box-shadow: 0 2px 0 rgba(15, 23, 42, .02);
}

.password-group .form-control {
    padding-right: 48px;
}

.input-icon-group .form-control::placeholder {
    color: #8b95a6;
}

.input-icon-group .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(17, 85, 220, .14);
}

.toggle-password {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    transform: translateY(-50%);
}

.toggle-password:hover,
.toggle-password:focus-visible {
    background: #f1f5f9;
    color: var(--brand-primary);
}

.btn-login {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(17, 85, 220, .20);
}

.btn-login:hover,
.btn-login:focus-visible {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
}

.btn-login svg {
    width: 21px;
    height: 21px;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    font-size: .91rem;
    font-weight: 700;
}

.auth-links a,
.developer-credit a {
    color: var(--brand-primary);
    text-decoration: none;
}

.auth-links a:hover,
.developer-credit a:hover {
    text-decoration: underline;
}

.auth-links span {
    color: #94a3b8;
}

.auth-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    color: #475569;
    text-align: center;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-social span:first-child {
    margin-right: 4px;
    color: #475569;
    font-size: .86rem;
    font-weight: 650;
}

.social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
    transition: transform .16s ease, box-shadow .16s ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .16);
}

.social-instagram {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 18%, #fd5949 43%, #d6249f 65%, #285aeb 100%);
}

.social-facebook {
    background: #1877f2;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.3;
}

.fb-icon {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 900;
    transform: translateY(1px);
}

.developer-credit {
    margin: 24px 0 0;
    color: #64748b;
    font-size: .88rem;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #ef4444;
}

@media (max-width: 1199.98px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .promo-panel {
        min-height: auto;
        padding-bottom: 46px;
    }

    .auth-panel {
        min-height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

@media (max-width: 767.98px) {
    .promo-panel {
        padding: 22px 14px 48px;
    }

    .promo-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .promo-card h1 {
        font-size: 2.05rem;
    }

    .promo-figure img {
        height: 250px;
    }

    .promo-features {
        grid-template-columns: 1fr;
    }

    .promo-feature {
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
        padding: 0 0 16px;
    }

    .promo-feature:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .auth-panel {
        padding: 34px 18px;
    }
}

/* Ajustes finos desta versão. Mantive aqui para você poder sobrepor só o index.php. */
.promo-card h1,
.promo-card h1 span {
    font-size: clamp(1.55rem, 1.75vw, 2.05rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.025em !important;
}

.promo-card h1 {
    margin: 0 0 8px !important;
}

.promo-text {
    max-width: 100% !important;
    margin: 0 0 14px !important;
    font-size: clamp(.78rem, .84vw, .94rem) !important;
    line-height: 1.28 !important;
    font-weight: 500 !important;
}


.promo-card {
    padding: clamp(18px, 2.1vw, 30px) !important;
}

.promo-figure img {
    height: clamp(230px, 28vw, 365px) !important;
    object-fit: cover;
    object-position: center center;
}

.promo-features {
    grid-template-columns: repeat(var(--promo-items-count, 2), minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 16px !important;
}

.promo-feature strong {
    font-size: .84rem !important;
    line-height: 1.15 !important;
}

.promo-feature p {
    font-size: .74rem !important;
    line-height: 1.22 !important;
}

/* Ajustes 2026-06-18: redução vertical da área de login para evitar rolagem em telas menores. */
.auth-panel {
    padding-top: clamp(14px, 2.4vw, 42px) !important;
    padding-bottom: clamp(12px, 2.2vw, 38px) !important;
}

.auth-card {
    width: min(500px, 100%) !important;
}

.auth-header {
    margin-bottom: 18px !important;
}

.auth-logo {
    width: min(198px, 60%) !important;
    margin-bottom: 4px !important;
}

.auth-header h2 {
    font-size: clamp(1.32rem, 1.45vw, 1.72rem) !important;
    line-height: 1.1 !important;
}

.auth-header h2::after {
    display: none !important;
    content: none !important;
}

.login-form {
    max-width: 400px !important;
}

.login-form .mb-3 {
    margin-bottom: 12px !important;
}

.form-label {
    margin-bottom: 5px !important;
    font-size: .88rem !important;
}

.input-icon-group .form-control {
    height: 50px !important;
    padding-left: 44px !important;
    border-radius: 10px !important;
    font-size: .94rem !important;
}

.password-group .form-control {
    padding-right: 48px !important;
}

.toggle-password {
    width: 36px !important;
    height: 36px !important;
    right: 7px !important;
}

.toggle-password svg {
    width: 17px !important;
    height: 17px !important;
}

.btn-login {
    height: 52px !important;
    border-radius: 10px !important;
    font-size: .98rem !important;
}

.btn-login svg {
    width: 19px !important;
    height: 19px !important;
}

.auth-links {
    margin-top: 16px !important;
    gap: 9px !important;
    font-size: .92rem !important;
}

.auth-footer {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 10px !important;
    margin-top: 26px !important;
    padding-top: 18px !important;
}

.footer-social {
    justify-content: center !important;
}

.developer-credit {
    margin: 8px 0 0 !important;
    font-size: .88rem !important;
    line-height: 1.25 !important;
}

@media (min-width: 1200px) and (max-height: 780px) {
    .auth-panel {
        padding-top: 10px !important;
        padding-bottom: 8px !important;
    }

    .auth-logo {
        width: min(176px, 56%) !important;
        margin-bottom: 2px !important;
    }

    .auth-header {
        margin-bottom: 14px !important;
    }

    .input-icon-group .form-control {
        height: 46px !important;
        font-size: .91rem !important;
    }

    .btn-login {
        height: 48px !important;
    }

    .auth-links {
        margin-top: 12px !important;
    }

    .auth-footer {
        margin-top: 18px !important;
        padding-top: 14px !important;
    }

    .developer-credit {
        margin-top: 4px !important;
    }
}



/* Seletor compacto de país/documento: usa SVGs inline em vez de emoji.
           Emoji de bandeira no Windows costuma aparecer como siglas (BR, AR etc.). */
.document-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px !important;
    position: relative;
}

.document-label-row .form-label {
    margin-bottom: 0 !important;
}

.country-picker {
    position: relative;
    flex: 0 0 auto;
}

.country-picker-button {
    width: 52px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 5px;
    border: 1px solid rgba(148, 163, 184, .55);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
}

.country-picker-button:hover,
.country-picker-button:focus {
    border-color: var(--brand-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 169, 157, .14) !important;
    outline: none;
}

.country-flag-img {
    width: 25px;
    height: 18px;
    display: block;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
    object-fit: cover;
}

.country-picker-chevron {
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 5px solid #64748b;
    margin-left: 1px;
}

.country-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    width: 210px;
    max-height: 236px;
    overflow: auto;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.country-picker-menu[hidden] {
    display: none !important;
}

.country-picker-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f2937;
    font-size: .86rem;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}

.country-picker-option:hover,
.country-picker-option:focus {
    background: var(--brand-accent-soft);
    outline: none;
}

.country-picker-option[aria-selected="true"] {
    font-weight: 700;
    color: #0f172a;
}


.login-alert {
    margin: 0 0 12px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    font-size: .84rem !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

.form-control.is-invalid {
    background-image: none !important;
}

.social-facebook svg {
    display: block;
    width: 9px;
    height: 16px;
    fill: #ffffff !important;
    color: #ffffff !important;
}

@media (max-width: 1500px) {

    .promo-card h1,
    .promo-card h1 span {
        font-size: clamp(1.45rem, 1.65vw, 1.9rem) !important;
    }

    .promo-text {
        font-size: .80rem !important;
        line-height: 1.26 !important;
    }
}

@media (min-width: 1200px) and (max-height: 820px) {
    .promo-panel {
        padding: 18px 30px !important;
    }

    .promo-card {
        padding: 18px 26px !important;
    }

    .promo-card h1,
    .promo-card h1 span {
        font-size: clamp(1.35rem, 1.5vw, 1.72rem) !important;
    }

    .promo-text {
        margin-bottom: 10px !important;
        font-size: .76rem !important;
        line-height: 1.22 !important;
    }

    .promo-figure img {
        height: clamp(205px, 24vw, 305px) !important;
    }

    .promo-features {
        gap: 10px !important;
        margin-top: 12px !important;
    }

    .promo-feature {
        gap: 8px !important;
        padding-right: 10px !important;
    }

    .feature-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .promo-feature strong {
        font-size: .76rem !important;
    }

    .promo-feature p {
        font-size: .66rem !important;
        line-height: 1.16 !important;
    }
}

.invalid-feedback {
    display: none;
}