/* =========================================================
   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-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;
    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-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-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    text-decoration: none;
}

.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-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;
}

.cliente-auth-hidden {
    display: none;
}

.cliente-auth-visible {
    display: block;
}

.cliente-auth-register-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.cliente-auth-register-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.cliente-auth-register-link:hover {
    text-decoration: none;
    border-color: #df1f26;
    box-shadow: 0 10px 24px rgba(223, 31, 38, 0.08);
    transform: translateY(-1px);
    color: #111827;
}

.cliente-auth-register-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.cliente-auth-register-link--store .cliente-auth-register-link-icon {
    background: rgba(244, 180, 0, 0.14);
    color: #8a5a00;
}

.cliente-auth-register-link--delivery .cliente-auth-register-link-icon {
    background: rgba(223, 31, 38, 0.08);
    color: #df1f26;
}

.cliente-auth-register-link-texts {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cliente-auth-register-link-texts strong {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: #111827;
}

.cliente-auth-register-link-texts small {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.cliente-auth-register-link-arrow {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 14px;
}

.cliente-auth-register-helper {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #6b7280;
    text-align: center;
}

.cliente-auth-footer {
    margin-top: 18px;
    text-align: center;
}

.cliente-auth-back {
    width: 100%;
    justify-content: center;
}

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-back,
    .cliente-auth-check,
    .cliente-auth-register-link {
        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-register-link {
        padding: 12px;
        border-radius: 14px;
    }

    .cliente-auth-register-link-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 15px;
    }

    .cliente-auth-register-link-texts strong {
        font-size: 13px;
    }

    .cliente-auth-register-link-texts small {
        font-size: 11px;
    }
}
 
body.cliente-auth-body .cliente-main {
    padding-bottom: 0;
}

body.cliente-auth-body .cliente-auth-page {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

body.cliente-auth-keyboard-open .cliente-main {
    padding-bottom: 0;
}

body.cliente-auth-keyboard-open .cliente-auth-page {
    padding-bottom: calc(340px + env(safe-area-inset-bottom, 0px));
}