/* OAuth login — layout template e-Ship (/oauth2/internal/service/login) */

.padrao-oauth.oauth-login-page {
    height: 100%;
    overflow: hidden;
    font-family: OpenSansRegular, sans-serif !important;
}

.padrao-oauth.oauth-login-page .panel-right__inner,
.padrao-oauth.oauth-login-page input,
.padrao-oauth.oauth-login-page select,
.padrao-oauth.oauth-login-page button,
.padrao-oauth.oauth-login-page a,
.padrao-oauth.oauth-login-page p,
.padrao-oauth.oauth-login-page h3,
.padrao-oauth.oauth-login-page label,
.padrao-oauth.oauth-login-page span {
    font-family: inherit;
}

.padrao-oauth.oauth-login-page .btn-entrar,
.padrao-oauth.oauth-login-page .field-label,
.padrao-oauth.oauth-login-page .form-divider span,
.padrao-oauth.oauth-login-page .forgot-link,
.padrao-oauth.oauth-login-page .login-footer__title {
    font-family: OpenSansBold, OpenSansSemiBold, OpenSansRegular, sans-serif !important;
}

.padrao-oauth.oauth-login-page .panel-left__tagline,
.padrao-oauth.oauth-login-page .login-footer__text,
.padrao-oauth.oauth-login-page .login-footer__title {
    white-space: normal !important;
}

.padrao-oauth.oauth-login-page > main {
    background: transparent;
    display: block;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.padrao-oauth.oauth-login-page #corpo {
    margin: 0;
    padding: 0;
    max-width: none;
}

.oauth-login-page .oauth-login-page__wrap {
    display: flex;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.oauth-login-page .panel-left {
    position: relative;
    flex: 0 0 45%;
    overflow: hidden;
    background: #164259;
}

.oauth-login-page .panel-left__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.oauth-login-page .panel-left__grade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22, 66, 89, 0.5) 0%, rgba(22, 66, 89, 0.28) 65%, rgba(241, 197, 20, 0.32) 100%);
    pointer-events: none;
}

.oauth-login-page .panel-left__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 66, 89, 0.55) 0%, transparent 50%);
    pointer-events: none;
}

.oauth-login-page .panel-left__tagline {
    position: absolute;
    bottom: 48px;
    left: 48px;
    right: 48px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    z-index: 2;
    text-shadow: 0 2px 12px rgba(22, 66, 89, 0.4);
}

.oauth-login-page .panel-left__tagline-accent {
    color: #f1c514;
}

.oauth-login-page .panel-left__tagline-bar {
    display: block;
    width: 48px;
    height: 4px;
    background: #f1c514;
    border-radius: 2px;
    margin-bottom: 14px;
}

.oauth-login-page .panel-right {
    flex: 0 0 55%;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 65%, rgba(241, 197, 20, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    padding: 12px 32px;
    overflow: hidden;
    border-left: 4px solid #f1c514;
}

.oauth-login-page .panel-right__inner {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 100%;
}

.oauth-login-page .login-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.oauth-login-page .login-panel .forgot-link {
    align-self: center;
}

.oauth-login-page .logo {
    padding: 0;
    margin-bottom: 10px;
    position: relative;
    align-self: center;
    text-align: center;
}

.oauth-login-page .logo::before {
    content: '';
    display: block;
    width: 100%;
    max-width: 220px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f1c514 20%, #f1c514 80%, transparent);
    border-radius: 2px;
    margin: 0 auto 8px;
}

.oauth-login-page .logo::after {
    content: '';
    display: block;
    width: 35%;
    min-width: 60px;
    max-width: 90px;
    height: 3px;
    background: #f1c514;
    border-radius: 999px;
    margin: 8px auto 0;
}

.oauth-login-page .logo__img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.oauth-login-page .login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oauth-login-page .input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px 0 6px;
    border: 1.5px solid #ccd5e2;
    border-radius: 10px;
    background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.oauth-login-page .input-wrapper:focus-within {
    border-color: #f1c514;
    box-shadow: 0 0 0 3px rgba(241, 197, 20, 0.35);
}

.oauth-login-page .field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #252f3d;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    padding-left: 2px;
}

.oauth-login-page .field-label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 3px;
    background: #f1c514;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.oauth-login-page .input-icon {
    flex-shrink: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.oauth-login-page .input-icon svg {
    width: 18px;
    height: 18px;
    fill: #4f5e70;
}

.oauth-login-page .input-wrapper:focus-within .input-icon svg {
    fill: #f1c514;
}

.oauth-login-page .toggle-password {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.oauth-login-page .toggle-password svg {
    width: 15px;
    height: 15px;
    fill: #3c5377;
}

.oauth-login-page .input-wrapper:focus-within .toggle-password svg {
    fill: #f1c514;
}

.oauth-login-page .input-wrapper .field_container,
.oauth-login-page .input-wrapper .mt-input-field {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.oauth-login-page .input-wrapper .field_body {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.oauth-login-page .input-wrapper .field_body > .display-flex,
.oauth-login-page .input-wrapper .field_body > .field_container {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.oauth-login-page .input-wrapper .input-field {
    margin: 0 !important;
    padding: 0 !important;
}

.oauth-login-page .input-wrapper label,
.oauth-login-page .input-wrapper .field_label {
    display: none !important;
}

.oauth-login-page .input-wrapper input,
.oauth-login-page .input-wrapper select,
.oauth-login-page .input-wrapper .input-select,
.oauth-login-page .input-wrapper .input-select select {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    color: #252f3d;
    background: transparent !important;
    min-width: 0;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.oauth-login-page .input-wrapper select,
.oauth-login-page .input-wrapper .input-select select {
    cursor: pointer;
    line-height: 1.4;
}

.oauth-login-page .input-wrapper .input-chave {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.oauth-login-page .input-wrapper input::placeholder {
    color: #808ea0;
    font-family: OpenSansRegular, sans-serif;
    font-weight: 400;
}

.oauth-login-page .input-wrapper .input-select label.active,
.oauth-login-page .input-wrapper .mt-input-field label,
.oauth-login-page .input-wrapper .mt-input-field .field_label {
    display: none !important;
}

.oauth-login-page .form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.oauth-login-page .form-divider::before,
.oauth-login-page .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1c514;
    opacity: 0.55;
}

.oauth-login-page .form-divider span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f1c514;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oauth-login-page .field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oauth-login-page .login-panel .forgot-link {
    align-self: center;
}

.oauth-login-page .btn-entrar {
    width: 100%;
    height: 46px;
    margin-top: 2px;
    border: none;
    border-radius: 999px;
    background: #164259;
    color: #ffffff;
    font-family: OpenSansBold, OpenSansSemiBold, OpenSansRegular, sans-serif !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
    padding: 0 20px;
    line-height: 1;
    box-shadow: none;
}

.oauth-login-page .btn-entrar:hover {
    background: #1a4f6a;
}

.oauth-login-page .btn-entrar:active {
    transform: scale(0.99);
}

.oauth-login-page .btn-entrar svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    flex-shrink: 0;
}

.oauth-login-page .forgot-link {
    display: inline-block;
    align-self: center;
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #252f3d;
    text-decoration: none;
    border-bottom: 2px solid #252f3d;
    padding-bottom: 2px;
    white-space: nowrap;
    line-height: 1.4;
}

.oauth-login-page .login-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 16px;
    row-gap: 0;
    margin-top: 14px;
    padding-top: 14px;
    background: transparent;
    border-top: 2px solid #f1c514;
    width: 100%;
}

.oauth-login-page .login-footer.login-footer--support-only {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.oauth-login-page .login-footer--support-only .login-footer__group {
    align-items: flex-start;
    width: 100%;
}

.oauth-login-page .login-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.oauth-login-page .login-footer__col--address {
    align-items: flex-start;
    text-align: left;
}

.oauth-login-page .login-footer__col--contact {
    align-items: flex-end;
    text-align: right;
}

.oauth-login-page .login-footer__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.oauth-login-page .login-footer__col--contact .login-footer__group {
    align-items: flex-end;
    width: auto;
}

.oauth-login-page .login-footer__title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #252f3d;
    margin: 0;
    line-height: 1.3;
}

.oauth-login-page .login-footer__text {
    font-size: 0.72rem;
    font-weight: 400;
    color: #4f5e70;
    line-height: 1.45;
    margin: 0;
}

.oauth-login-page .login-footer__text a {
    color: inherit;
    text-decoration: none;
}

.oauth-login-page .login-footer__social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 0;
}

.oauth-login-page .login-footer__social-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #164259;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oauth-login-page .login-footer__social-link svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

@media (max-height: 720px) {
    .oauth-login-page .logo__img {
        width: 150px;
    }

    .oauth-login-page .logo {
        margin-bottom: 6px;
    }

    .oauth-login-page .login-form {
        gap: 8px;
    }

    .oauth-login-page .input-wrapper,
    .oauth-login-page .btn-entrar {
        height: 42px;
    }
}

@media (max-width: 900px) {
    .oauth-login-page .oauth-login-page__wrap {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }

    .oauth-login-page .panel-left {
        flex: none;
        height: 22vh;
        min-height: 140px;
        max-height: 200px;
    }

    .oauth-login-page .panel-left__tagline {
        font-size: 0.95rem;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .oauth-login-page .panel-right {
        flex: 1;
        height: auto;
        min-height: 0;
        padding: 12px 20px 14px;
        overflow: hidden;
    }

    .oauth-login-page .logo__img {
        width: 140px;
    }
}
