/* ==========================================================================
   Moboplus Theme 2026 — sign in (mobile number + one-time code)
   ========================================================================== */

.mp-auth {
    clear: both;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    max-width: 980px;
    margin: 28px auto 0;
    border-radius: var(--mp-radius-xl);
    background: var(--mp-surface);
    box-shadow: var(--mp-shadow);
    overflow: hidden;
}

/* ---------- Brand panel ---------- */
.mp-auth__brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 34px;
    background: var(--mp-grad);
    color: #fff;
}
.mp-auth__brand:before,
.mp-auth__brand:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.mp-auth__brand:before { width: 380px; height: 380px; top: -170px; left: -120px; background: radial-gradient(closest-side, rgba(255, 255, 255, .25), transparent); }
.mp-auth__brand:after { width: 320px; height: 320px; bottom: -160px; right: -80px; background: radial-gradient(closest-side, rgba(255, 154, 61, .45), transparent); }
.mp-auth__brand > * { position: relative; z-index: 1; }
.mp-auth__logo {
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 16px;
    background: #fff;
}
.mp-auth__logo img { height: 36px; width: auto; display: block; }
.mp-auth__brand h2 { margin: 0 0 10px; font-size: 24px; font-weight: 600; line-height: 1.7; color: #fff; }
.mp-auth__brand p { margin: 0; font-size: 13.5px; line-height: 2; color: rgba(255, 255, 255, .85); }
.mp-auth__perks { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mp-auth__perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 13px;
}
.mp-auth__perks i {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
    font-size: 14px;
}

/* ---------- Form panel ---------- */
.mp-auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 42px;
}
.mp-auth__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-primary-50);
    color: var(--mp-primary);
    font-size: 24px;
}
.mp-auth__title { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: var(--mp-text); }
.mp-auth__subtitle { margin: 0 0 26px; font-size: 13.5px; line-height: 2; color: var(--mp-text-2); }
.mp-auth__subtitle b { color: var(--mp-text); direction: ltr; unicode-bidi: embed; }
.mp-auth__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 20px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff5e6;
    color: #a35a00;
    font-size: 13px;
}
.mp-auth__label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--mp-text-2); }
.mp-auth__field { position: relative; }
.mp-auth__field > i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mp-text-3);
    font-size: 16px;
    pointer-events: none;
    transition: color .2s;
}
.mp-auth__field:focus-within > i { color: var(--mp-primary); }
.mp-auth__input {
    width: 100%;
    height: 58px;
    padding: 0 50px 0 18px;
    border: 1.5px solid var(--mp-border);
    border-radius: 16px;
    background: var(--mp-surface-2);
    color: var(--mp-text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: right;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.mp-auth__input:not(:placeholder-shown) { text-align: left; }
.mp-auth__input::placeholder { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--mp-text-3); }
.mp-auth__input:focus { outline: 0; border-color: var(--mp-primary); background: #fff; box-shadow: 0 0 0 5px var(--mp-primary-50); }
.mp-auth__field.has-error .mp-auth__input { border-color: #ff9db7; background: #fff7f9; }
.mp-auth__error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12.5px;
    color: #d81b4f;
}
.mp-auth__submit.mp-btn { width: 100%; height: 56px; margin-top: 22px; font-size: 15px; border-radius: 16px; }
.mp-auth__terms { margin: 16px 0 0; font-size: 12px; line-height: 2; color: var(--mp-text-3); text-align: center; }

/* ---------- OTP boxes ---------- */
.mp-otp { display: flex; justify-content: center; gap: 10px; direction: ltr; }
.mp-otp__box {
    width: 58px;
    height: 64px;
    padding: 0;
    border: 1.5px solid var(--mp-border);
    border-radius: 16px;
    background: var(--mp-surface-2);
    color: var(--mp-text);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    caret-color: var(--mp-primary);
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--mp-ease);
}
.mp-otp__box:focus { outline: 0; border-color: var(--mp-primary); background: #fff; box-shadow: 0 0 0 5px var(--mp-primary-50); transform: translateY(-2px); }
.mp-otp__box.is-filled { border-color: var(--mp-primary-100); background: #fff; }
.mp-otp.is-error .mp-otp__box { border-color: #ff9db7; background: #fff7f9; animation: mpShake .35s; }
@keyframes mpShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.mp-otp-real { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.mp-auth__resend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--mp-text-3);
}
.mp-auth__resend a { color: var(--mp-primary) !important; font-weight: 600; text-decoration: none !important; }
.mp-auth__resend a.is-disabled { color: var(--mp-text-3) !important; pointer-events: none; font-weight: 400; }
.mp-auth__resend b { color: var(--mp-text-2); font-weight: 600; }
.mp-auth__edit { display: inline-flex; align-items: center; gap: 6px; color: var(--mp-text-2) !important; }
.mp-auth__edit:hover { color: var(--mp-primary) !important; }
.mp-auth__submit.is-loading { pointer-events: none; opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .mp-auth {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 14px;
        border-radius: 26px;
    }
    .mp-auth__brand { padding: 22px 20px; gap: 14px; }
    .mp-auth__brand h2 { font-size: 18px; margin-bottom: 4px; }
    .mp-auth__brand p { font-size: 12.5px; }
    .mp-auth__perks { display: none; }
    .mp-auth__logo { display: none; }
    .mp-auth__panel { padding: 26px 18px 28px; }
    .mp-auth__icon { width: 52px; height: 52px; border-radius: 16px; font-size: 20px; margin-bottom: 14px; }
    .mp-auth__title { font-size: 19px; }
    .mp-otp { gap: 8px; }
    .mp-otp__box { width: 52px; height: 58px; font-size: 22px; border-radius: 14px; }
}
