/* ETA OTP Login - customer authentication pages */

@keyframes eta-otp-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes eta-otp-spin {
    to { transform: rotate(360deg); }
}

@keyframes eta-otp-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

body.customers_login .login-heading,
body.customers.customers_login h1,
.forgot-password-heading h1 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---- shared card polish (login / forgot / reset) ---- */
.customers .panel_s {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 20, 43, 0.09), 0 2px 8px rgba(20, 20, 43, 0.05);
    overflow: hidden;
    animation: eta-otp-fade-in .35s ease both;
}

.customers .panel_s .panel-body {
    padding: 30px 28px;
}

.customers .btn-primary.btn-block {
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.customers .btn-primary.btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(60, 141, 188, 0.3);
}

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

.customers .form-control {
    border-radius: 10px;
    padding: 11px 14px;
    height: auto;
    border: 1px solid #e3e5ec;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.customers .form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.15);
}

/* ---- OTP block ---- */
.eta-otp-block {
    max-width: 420px;
    margin: 0 auto 18px auto;
    animation: eta-otp-fade-in .3s ease both;
}

.eta-otp-logo {
    margin-bottom: 22px;
}

.eta-otp-logo img {
    max-height: 52px;
    width: auto;
}

.eta-otp-tabs {
    position: relative;
    display: flex;
    background: #f1f2f8;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.eta-otp-tabs-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(20, 20, 43, 0.1);
    transition: left .25s cubic-bezier(.4, 0, .2, 1), width .25s cubic-bezier(.4, 0, .2, 1);
    z-index: 0;
}

.eta-otp-tab-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    border: none;
    background: transparent;
    padding: 11px 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #7b7f92;
    border-radius: 9px;
    cursor: pointer;
    transition: color .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.eta-otp-tab-btn.eta-otp-active {
    color: #3c8dbc;
}

.eta-otp-panel.panel_s {
    margin-bottom: 0;
}

.eta-otp-step-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #eaf3fa, #dcecf7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #3c8dbc;
}

.eta-otp-step-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #23262f;
}

.eta-otp-step-desc {
    text-align: center;
    font-size: 13px;
    color: #8a8ea0;
    margin-bottom: 20px;
}

.eta-otp-phone-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.eta-otp-phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 10px;
    background: #f1f2f8;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.eta-otp-phone-input {
    flex: 1 1 auto;
    text-align: left;
    direction: ltr;
    letter-spacing: .5px;
    font-weight: 600;
}

.eta-otp-recaptcha {
    margin: 16px 0 4px 0;
    display: flex;
    justify-content: center;
    transform: scale(0.94);
    transform-origin: center;
}

.eta-otp-mt {
    margin-top: 18px;
}

.eta-otp-btn {
    position: relative;
    overflow: hidden;
}

.eta-otp-btn .eta-otp-spinner {
    display: none;
}

.eta-otp-btn.eta-otp-loading .eta-otp-btn-label {
    visibility: hidden;
}

.eta-otp-btn.eta-otp-loading .eta-otp-spinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eta-otp-spin .6s linear infinite;
}

.eta-otp-code-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.eta-otp-digit {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid #e3e5ec;
    border-radius: 10px;
    background: #fafbfd;
    color: #23262f;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.eta-otp-digit:focus {
    outline: none;
    border-color: #3c8dbc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.15);
}

.eta-otp-code-boxes.eta-otp-success .eta-otp-digit {
    border-color: #2fb380;
    background: #f0fbf6;
    color: #1e9e5a;
}

.eta-otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    margin-top: 14px;
}

.eta-otp-actions a {
    cursor: pointer;
    color: #6b7280;
    font-weight: 500;
}

.eta-otp-actions a:hover {
    color: #3c8dbc;
}

.eta-otp-actions a.eta-otp-disabled {
    pointer-events: none;
    color: #c2c5d1 !important;
    cursor: default;
}

.eta-otp-error {
    min-height: 18px;
    font-size: 12.5px;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    color: #e0554f;
    font-weight: 500;
}

.eta-otp-error:not(:empty) {
    animation: eta-otp-shake .35s ease;
}

.eta-otp-hide {
    display: none !important;
}

/* ---- admin (staff) login page ---- */
.eta-otp-admin-block {
    margin-bottom: 22px;
}

.eta-otp-admin-panel {
    margin-top: 4px;
}

.login_admin .eta-otp-tabs {
    margin-bottom: 22px;
}

/* mobile responsiveness */
@media (max-width: 480px) {
    .customers .panel_s .panel-body {
        padding: 22px 16px;
    }

    .eta-otp-block {
        max-width: 100%;
        padding: 0 2px;
    }

    .eta-otp-tab-btn {
        font-size: 12.5px;
        padding: 10px 4px;
    }

    .eta-otp-digit {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .eta-otp-step-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .eta-otp-digit {
        width: 34px;
        height: 44px;
        font-size: 18px;
    }

    .eta-otp-code-boxes {
        gap: 6px;
    }
}

/* html[dir="rtl"] already reverses flex row direction natively, but keep the
   digit boxes and phone prefix visually left-to-right since digits/numbers
   read LTR in both languages. */
[dir="rtl"] .eta-otp-code-boxes,
[dir="rtl"] .eta-otp-phone-group {
    direction: ltr;
}
