/* Portal do Fornecedor — tela de acesso (CNPJ + e-mail + código OTP).
 * min-height (em vez de height + overflow:hidden) para o rodapé com o
 * copyright, renderizado como irmão deste wrapper, continuar visível. */
html,
body,
#page-top {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

/* footer.css também define .content-wrapper como flex column centralizado
 * (para as telas internas do fornecedor); aqui a tela de login precisa do
 * wrapper ocupando a largura toda, não centralizado como item flex. */
.content-wrapper {
    display: block !important;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.fornecedor-auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #fff;
}

.fornecedor-auth-left,
.fornecedor-auth-right {
    min-width: 0;
    box-sizing: border-box;
}

.fornecedor-auth-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58%;
    width: 58%;
    max-width: 58%;
    padding: clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(56, 119, 211, .38), transparent 34%),
        linear-gradient(135deg, #071426 0%, #0e2e5d 55%, #1e4f93 100%);
}

.fornecedor-auth-left::before {
    position: absolute;
    top: -26%;
    right: -10%;
    width: min(680px, 70vw);
    height: min(680px, 70vw);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(255, 255, 255, .025), 0 0 0 144px rgba(255, 255, 255, .018);
    content: "";
}

.fornecedor-auth-left-content {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
}

.fornecedor-auth-brand {
    display: flex;
    align-items: center;
    width: min(100%, 240px);
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.fornecedor-auth-brand-logo {
    display: block;
    width: min(100%, 240px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
}

.fornecedor-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.75rem;
    padding: .5rem .8rem;
    border: 1px solid rgba(162, 201, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #d7e7fb;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.fornecedor-auth-badge .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #56d39b;
    box-shadow: 0 0 0 4px rgba(86, 211, 155, .12), 0 0 12px rgba(86, 211, 155, .75);
}

.fornecedor-auth-features {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 460px;
}

.fornecedor-auth-feature {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(188, 216, 249, .15);
    border-radius: 15px;
    background: rgba(255, 255, 255, .065);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.fornecedor-auth-feature:hover {
    border-color: rgba(188, 216, 249, .3);
    background: rgba(255, 255, 255, .11);
    transform: translateY(-2px);
}

.fornecedor-auth-feature-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(125, 187, 255, .18);
    border-radius: 11px;
    background: rgba(74, 156, 237, .16);
    color: #6fc4ff;
    font-size: 1.3rem;
}

.fornecedor-auth-feature-text {
    min-width: 0;
}

.fornecedor-auth-feature-text h4 {
    margin: 0;
    color: #f5f9ff;
    font-size: .88rem;
    font-weight: 700;
}

.fornecedor-auth-feature-text p {
    margin: .2rem 0 0;
    color: #a9bdd8;
    font-size: .76rem;
    line-height: 1.4;
}

.fornecedor-auth-left-footer {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.75rem;
    color: #9db5d3;
    font-size: .75rem;
}

.fornecedor-auth-left-footer i {
    color: #69c5ff;
    font-size: 1rem;
}

.fornecedor-auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42%;
    width: 42%;
    max-width: 42%;
    padding: clamp(2rem, 5vw, 4rem);
    overflow-y: auto;
    background: #fff;
}

.fornecedor-auth-form-container {
    width: min(100%, 440px);
    padding: 1rem 0;
}

.fornecedor-auth-mobile-brand {
    display: none;
}

.fornecedor-auth-kicker {
    display: block;
    margin-bottom: .6rem;
    color: var(--yms-brand, #24519b);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.fornecedor-auth-heading {
    margin-bottom: 1.5rem;
}

.fornecedor-auth-heading h4 {
    margin: 0 0 .5rem;
    color: #15243b;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.03em;
}

.fornecedor-auth-heading h4 i {
    font-size: 1.3rem;
}

.fornecedor-auth-heading p {
    margin: 0;
    color: #71829b;
    font-size: .92rem;
    line-height: 1.5;
}

.fornecedor-input-group {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 0 .85rem 0 1rem;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fornecedor-input-group:focus-within {
    border-color: var(--yms-brand, #24519b);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 81, 155, .1);
}

.fornecedor-input-icon {
    flex: 0 0 auto;
    color: #8ca0ba;
    font-size: 1.3rem;
    transition: color .18s ease;
}

.fornecedor-input-group:focus-within .fornecedor-input-icon {
    color: var(--yms-brand, #24519b);
}

.fornecedor-input-group input {
    width: 100%;
    height: 56px;
    padding: 0 .8rem;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #20324e;
    font-size: 1rem;
}

.fornecedor-input-group input::placeholder {
    color: #9aabc0;
}

.fornecedor-btn-primary {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: .25rem;
    padding: .8rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d67c8 0%, #24519b 100%) !important;
    box-shadow: 0 12px 24px rgba(36, 81, 155, .22);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fornecedor-btn-primary:hover,
.fornecedor-btn-primary:focus-visible {
    filter: brightness(1.04);
    box-shadow: 0 16px 30px rgba(36, 81, 155, .3);
    color: #fff;
    transform: translateY(-2px);
}

.fornecedor-btn-primary:active {
    transform: translateY(0);
}

.fornecedor-btn-primary i {
    font-size: 1.3rem;
}

.fornecedor-auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.1rem;
    color: #8292a8;
    font-size: .73rem;
    text-align: center;
}

.fornecedor-auth-security-note i {
    color: var(--yms-brand, #24519b);
    font-size: .95rem;
}

.fornecedor-auth-resend {
    color: #71829b;
    font-size: .85rem;
}

.fornecedor-auth-resend a {
    color: var(--yms-brand, #24519b);
    font-weight: 700;
    text-decoration: none;
}

.fornecedor-auth-resend a:hover {
    text-decoration: underline;
}

.fornecedor-auth-resend a.disabled {
    color: #9aabc0;
    pointer-events: none;
    text-decoration: none;
}

/* Código de verificação (6 dígitos) */
.auth-input-wrapper {
    gap: .5rem;
}

.auth-input {
    max-width: 52px;
    border-radius: 10px !important;
    font-size: 1.3rem;
    font-weight: 700;
}

.auth-input:focus {
    border-color: var(--yms-brand, #24519b) !important;
    box-shadow: 0 0 0 3px rgba(36, 81, 155, .15) !important;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .fornecedor-auth-left {
        padding: 2.25rem;
    }

    .fornecedor-auth-feature {
        padding: .7rem;
    }
}

@media (max-width: 991.98px) {
    html,
    body,
    #page-top,
    .content-wrapper {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
    }

    .fornecedor-auth-wrapper {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .fornecedor-auth-left {
        display: none !important;
    }

    .fornecedor-auth-right {
        display: flex;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        height: auto;
        padding: 2.25rem 1.25rem;
        overflow: visible;
    }

    .fornecedor-auth-mobile-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .fornecedor-auth-mobile-brand .fornecedor-auth-brand-logo {
        width: min(220px, 78vw);
    }

    .fornecedor-auth-heading {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .fornecedor-auth-right {
        padding: 1.5rem 1rem;
    }

    .auth-input {
        max-width: 42px;
        font-size: 1.1rem;
    }
}
