@font-face {
    font-family: 'SicoobSans';
    src: url('assets/sicoob-sans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SicoobSans';
    src: url('assets/sicoob-sans-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SicoobSans';
    src: url('assets/sicoob-sans-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SicoobSans';
    src: url('assets/sicoob-sans-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

:root {
    --verde-escuro: #003641;
    --verde-escuro-2: #003340;
    --teal: #00ae9d;
    --teal-escuro: #058075;
    --lima: #c9d200;
    --lima-logo: #bfd730;
    --verde-logo: #72bf44;
    --branco: #ffffff;
    --texto-suave: rgba(255, 255, 255, 0.78);
    --borda-card: #058075;
    --erro: #ffb4a8;
}

html {
    min-height: 100%;
}

body {
    font-family: 'SicoobSans', 'Sicoob sans', 'Asap', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    color: var(--branco);
    background-color: var(--verde-escuro);
    background-image: url('assets/texture.png'), linear-gradient(0deg, var(--teal) 0%, var(--verde-escuro-2) 100%);
    background-repeat: repeat, no-repeat;
    background-size: 1338px auto, cover;
    background-position: center top, center;
    background-attachment: fixed, fixed;
    -webkit-font-smoothing: antialiased;
}

.ib-shell {
    display: flex;
    min-height: 100vh;
}

.welcome {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 43px 20px 32px;
    background: var(--verde-escuro);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
    display: block;
    line-height: 0;
}

.brand-mobile {
    display: none;
}

.brand img {
    width: 176px;
    height: auto;
    display: block;
}

.welcome-copy {
    margin-top: 66px;
    text-align: center;
}

.welcome-copy h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.welcome-copy p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
    color: var(--branco);
}

.promo {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-top: 92px;
}

.promo-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 400 / 350;
    overflow: hidden;
    border-radius: 4px;
    background: var(--verde-escuro);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.promo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.promo-slide.is-active {
    opacity: 1;
}

.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0b4e57;
    color: var(--branco);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease;
}

.promo-arrow:hover {
    background: #0d5e69;
}

.promo-arrow:focus-visible {
    outline: 2px solid var(--branco);
    outline-offset: 2px;
}

.promo-arrow svg {
    width: 20px;
    height: 20px;
}

.promo-prev {
    display: none;
}

.promo-next {
    right: -45px;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.promo-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.promo-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.promo-dot.is-active {
    background: var(--branco);
    transform: scale(1.15);
}

.access {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    padding: 52px 24px 40px;
}

.access-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.access h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 18px;
}

.login-card {
    width: 100%;
    max-width: 362px;
    padding: 30px;
    background: var(--verde-escuro);
    border: 1px solid var(--borda-card);
    border-radius: 5px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.2);
}

.card-intro {
    font-size: 14px;
    line-height: 1.45;
    color: var(--texto-suave);
    margin-bottom: 20px;
}

.form {
    display: flex;
    flex-direction: column;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--branco);
}

.field input {
    width: 100%;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--borda-card);
    border-radius: 5px;
    background: transparent;
    color: var(--branco);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.field input:hover {
    border-color: #079b8d;
}

.field input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0, 174, 157, 0.28);
}

.field input.error {
    border-color: #ff8a80;
    box-shadow: 0 0 0 2px rgba(255, 138, 128, 0.18);
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap input {
    padding-right: 44px;
    letter-spacing: 0.35em;
}

.password-wrap input::placeholder {
    letter-spacing: normal;
}

.toggle-password {
    position: absolute;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.toggle-password:hover {
    color: var(--branco);
    background: rgba(255, 255, 255, 0.08);
}

.toggle-password:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

.error-message {
    display: none;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--erro);
}

.error-message.visible {
    display: block;
}

.btn-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    padding: 4px 12px;
    border: 1px solid #002b35;
    border-radius: 3px;
    background: var(--teal-escuro);
    color: var(--branco);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-enter:hover:not(:disabled) {
    background: #069a8b;
}

.btn-enter:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-enter:focus-visible {
    outline: 2px solid var(--lima);
    outline-offset: 2px;
}

.btn-enter:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 17px;
    height: 17px;
    animation: girar 0.9s linear infinite;
}

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

.form-feedback {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 174, 157, 0.55);
    border-left: 3px solid var(--teal);
    border-radius: 3px;
    background: rgba(0, 174, 157, 0.12);
    font-size: 12.5px;
    line-height: 1.45;
    color: #d7fff8;
}

.form-feedback.is-error {
    border-color: rgba(255, 138, 128, 0.55);
    border-left-color: #ff8a80;
    background: rgba(255, 138, 128, 0.1);
    color: var(--erro);
}

.form-feedback.is-warning {
    border-color: rgba(201, 210, 0, 0.55);
    border-left-color: var(--lima);
    background: rgba(201, 210, 0, 0.12);
    color: #f4ffb8;
}

.field input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.field input:disabled:hover {
    border-color: var(--borda-card);
}

.toggle-password:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.shortcut {
    width: 74px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px;
    border: 0;
    border-radius: 3px;
    background: var(--verde-escuro);
    color: var(--teal-escuro);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 10px 10px 26px rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease;
}

.shortcut:hover {
    background: #02414d;
}

.shortcut:focus-visible {
    outline: 2px solid var(--lima);
    outline-offset: 2px;
}

.shortcut-pay img {
    display: block;
    height: 38px;
    width: auto;
}

.legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.4;
}

.legal a {
    color: var(--branco);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal a:hover {
    color: #c9ffea;
}

.legal .sep {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1100px) {
    .ib-shell {
        display: block;
    }

    .welcome {
        display: none;
    }

    .brand-mobile {
        display: block;
        margin-bottom: 30px;
    }

    .brand-mobile img {
        width: 158px;
        height: auto;
        display: block;
    }

    .access {
        min-height: 100vh;
        padding: 52px 16px 32px;
    }

    .access h2 {
        font-size: 20px;
        margin-bottom: 26px;
    }

    body {
        background-attachment: scroll, scroll;
    }
}

@media (max-width: 420px) {
    .access {
        padding-top: 36px;
    }

    .access h2 {
        font-size: 20px;
    }

    .login-card {
        padding: 24px 22px;
    }

    .legal {
        gap: 10px;
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .promo-slide {
        transition: none;
    }
}

/* ===== Refinos mobile (toque) ===== */
@media (max-width: 700px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    * {
        -webkit-tap-highlight-color: transparent;
    }

    body {
        background-image: url('assets/texture.png'), linear-gradient(180deg, #002f39 0%, #003641 48%, #045e58 100%);
        background-size: 1100px auto, cover;
        background-position: center top, center;
    }

    .access {
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: max(32px, env(safe-area-inset-top));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .access h2 {
        font-size: 21px;
        margin-bottom: 20px;
    }

    .login-card {
        padding: 26px 22px;
        border-radius: 8px;
    }

    .card-intro {
        font-size: 14.5px;
        margin-bottom: 22px;
    }

    .field {
        margin-bottom: 18px;
    }

    .field label {
        font-size: 13.5px;
        margin-bottom: 8px;
    }

    .field input {
        height: 48px;
        padding: 0 14px;
        font-size: 16px;
        border-radius: 8px;
    }

    .password-wrap input {
        padding-right: 54px;
    }

    .toggle-password {
        right: 4px;
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .toggle-password svg {
        width: 20px;
        height: 20px;
    }

    .btn-enter {
        height: 50px;
        margin-top: 14px;
        font-size: 17px;
        border-radius: 6px;
    }

    .shortcuts {
        gap: 10px;
        margin-top: 18px;
    }

    .shortcut {
        width: 86px;
        height: 78px;
        border-radius: 6px;
    }

    .shortcut-pay img {
        height: 40px;
    }

    .legal {
        gap: 2px 16px;
        margin-top: 18px;
        font-size: 12.5px;
    }

    .legal a {
        display: inline-block;
        padding: 10px 0;
    }

    .legal .sep {
        display: none;
    }

    .form-feedback {
        font-size: 13px;
        padding: 12px 14px;
    }
}

@media (max-width: 380px) {
    .access {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }

    .login-card {
        padding: 22px 18px;
    }

    .access h2 {
        font-size: 19px;
    }

    .field input {
        height: 46px;
    }

    .btn-enter {
        height: 48px;
    }
}