/* =========================================================
   LOGIN / AUTH
   Arquivo: public/assets/cliente/css/login.css
   ========================================================= */

.cliente-auth-page {
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0 28px;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.cliente-auth-page__inner {
    width: 100%;
}

.cliente-auth-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    transition: transform 0.25s ease, padding-bottom 0.25s ease;
}

.cliente-auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

.cliente-auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.cliente-auth-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.cliente-auth-subtitle {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.cliente-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.cliente-auth-tab {
    appearance: none;
    border: 0;
    background: transparent;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: 0.2s ease;
}

.cliente-auth-tab.is-active {
    background: #df1f26;
    color: #fff;
    box-shadow: 0 6px 18px rgba(223, 31, 38, 0.22);
}

.cliente-auth-panel {
    display: none;
}

.cliente-auth-panel.is-active {
    display: block;
}

.cliente-auth-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.cliente-auth-alert-error {
    background: #fff1f1;
    color: #c62828;
    border: 1px solid #ffd6d6;
}

.cliente-auth-alert-info {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.cliente-auth-alert-success {
    background: #eefaf2;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cliente-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cliente-auth-account-type {
    margin: -2px 0 2px;
}

.cliente-auth-account-type__heading {
    margin-bottom: 10px;
}

.cliente-auth-account-type__heading h2 {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 800;
}

.cliente-auth-account-type__heading p {
    margin: 3px 0 0;
    color: #7b7b7b;
    font-size: 12px;
    line-height: 1.4;
}

.cliente-auth-account-type__options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.cliente-auth-account-type__option {
    min-height: 76px;
    padding: 8px 5px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    color: #5f6368;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cliente-auth-account-type__option i {
    font-size: 19px;
}

.cliente-auth-account-type__option:hover {
    border-color: #df1f26;
    color: #c91b42;
}

.cliente-auth-account-type__option:focus-visible {
    outline: 0;
    border-color: #df1f26;
    box-shadow: 0 0 0 3px rgba(223, 31, 38, 0.14);
}

.cliente-auth-account-type__option.is-selected {
    border-color: #df1f26;
    background: #fff0f3;
    color: #c91b42;
    box-shadow: inset 0 0 0 1px rgba(223, 31, 38, 0.08);
}

.cliente-auth-account-benefits {
    min-width: 0;
}

.cliente-auth-account-benefit-slider {
    position: relative;
}

.cliente-auth-account-benefit-viewport {
    overflow: hidden;
    border-radius: 14px;
}

.cliente-auth-account-benefit-track {
    display: flex;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.cliente-auth-account-benefit-slide {
    width: 100%;
    min-width: 100%;
    min-height: 86px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.cliente-auth-account-benefit-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: rgba(223, 31, 38, 0.08);
    color: #df1f26;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cliente-auth-account-benefit-slide > div {
    min-width: 0;
}

.cliente-auth-account-benefit-slide > div strong,
.cliente-auth-account-benefit-slide > div > span {
    display: block;
}

.cliente-auth-account-benefit-slide strong {
    margin-bottom: 3px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.cliente-auth-account-benefit-slide > div > span {
    color: #6b7280;
    font-size: 11.5px;
    line-height: 1.45;
}

.cliente-auth-account-benefit-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}

.cliente-auth-account-benefit-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.cliente-auth-account-benefit-dot.is-active {
    width: 22px;
    background: #df1f26;
}

.cliente-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cliente-auth-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.cliente-auth-input {
    width: 100%;
    height: 52px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    color: #222;
    background: #fff;
    outline: none;
}

.cliente-auth-input:focus {
    border-color: #df1f26;
    box-shadow: 0 0 0 3px rgba(223, 31, 38, 0.10);
}

.cliente-auth-input-wrap {
    position: relative;
}

.cliente-auth-input--with-action {
    padding-right: 54px;
}

.cliente-auth-input-action {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 999px;
}

.cliente-auth-input-action:hover {
    color: #df1f26;
}

.cliente-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.cliente-auth-login-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.cliente-auth-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}

.cliente-auth-inline-link:hover {
    color: #df1f26;
    text-decoration: none;
}

.cliente-auth-submit {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
    justify-content: center;
}

.cliente-auth-captcha-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 15px;
    background: #fafafa;
}

.cliente-auth-captcha-image img {
    display: block;
    max-width: 100%;
    border: 1px solid #ececec;
    border-radius: 10px;
}

.cliente-auth-biometric-wrap {
    margin-top: 12px;
}

.cliente-auth-biometric-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cliente-auth-biometric-helper {
    margin-top: 10px;
    margin-bottom: 0;
}

/* O respiro da biometria fica fora do card, antes do rodapé. */
.cliente-auth-biometric-wrap:not(.cliente-auth-hidden) {
    margin-bottom: 0;
}

#clienteAuthCard.cliente-auth-card--biometric {
    padding-bottom: 14px;
}

.cliente-auth-hidden {
    display: none;
}

.cliente-auth-visible {
    display: block;
}

.cliente-auth-register-helper {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #6b7280;
    text-align: center;
}

.cliente-auth-password-help {
    align-self: flex-start;
    margin: -4px 0 0 !important;
    text-align: left !important;
}

.cliente-auth-delivery-success {
    text-align: center;
}

.cliente-auth-delivery-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #eefaf2;
    color: #16803c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cliente-auth-delivery-success h1 {
    margin: 0 0 8px;
    color: #222;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
}

.cliente-auth-delivery-success > p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

.cliente-auth-delivery-success__details {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.cliente-auth-delivery-success__details div {
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 13px;
    background: #fafafa;
}

.cliente-auth-delivery-success__details strong,
.cliente-auth-delivery-success__details span {
    display: block;
}

.cliente-auth-delivery-success__details strong {
    margin-bottom: 2px;
    color: #333;
    font-size: 12px;
    font-weight: 800;
}

.cliente-auth-delivery-success__details span {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

body.cliente-auth-keyboard-open .cliente-auth-page {
    padding-bottom: calc(340px + env(safe-area-inset-bottom, 0px));
}

body.cliente-auth-keyboard-open .cliente-auth-shell {
    padding-bottom: 32px;
}

@media (max-width: 768px) {
    .cliente-auth-card {
        scroll-margin-top: 18px;
    }

    .cliente-auth-input,
    .cliente-auth-submit,
    .cliente-auth-check {
        scroll-margin-bottom: 140px;
    }
}

@media (max-width: 640px) {
    .cliente-auth-page {
        align-items: flex-start;
        padding-top: 10px;
    }

    .cliente-auth-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .cliente-auth-title {
        font-size: 24px;
    }

    .cliente-auth-subtitle {
        font-size: 14px;
    }

    .cliente-auth-tabs {
        margin-bottom: 16px;
    }

    .cliente-auth-input {
        height: 50px;
    }

    .cliente-auth-submit {
        min-height: 50px;
    }

    .cliente-auth-account-type__options {
        gap: 5px;
    }

    .cliente-auth-account-type__option {
        min-height: 70px;
        padding: 7px 3px;
        border-radius: 13px;
        font-size: 10px;
    }

    .cliente-auth-account-type__option i {
        font-size: 17px;
    }

    .cliente-auth-account-benefit-slide {
        min-height: 82px;
        padding: 10px;
    }

}
 
body.cliente-auth-reset-body .cliente-main {
    min-height: 0;
    padding-bottom: 12px;
}

body.cliente-auth-reset-body .cliente-auth-page {
    padding-bottom: 18px;
}

/* A navegação de autenticação segue o mesmo rodapé fixo das demais telas.
   O espaço abaixo do cartão evita que os campos e ações fiquem encobertos. */
body.cliente-auth-body .cliente-main {
    min-height: 100vh;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

body.cliente-auth-body .cliente-auth-page {
    min-height: calc(100vh - 84px - env(safe-area-inset-bottom, 0px));
    padding-top: 10px;
    padding-bottom: 18px;
}

body.cliente-auth-keyboard-open .cliente-main {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

body.cliente-auth-keyboard-open .cliente-auth-page {
    padding-bottom: calc(340px + env(safe-area-inset-bottom, 0px));
}
