/* =============================================================================
   Shaker OTP Login — Stylesheet
   ============================================================================= */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.shaker-otp-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: 36px 32px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.shaker-otp-header {
    text-align: center;
    margin-bottom: 28px;
}

.shaker-otp-header h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.shaker-otp-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ── Notice (error / success) ─────────────────────────────────────────────── */
.shaker-otp-notice {
    display: none;
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.45;
}

.shaker-otp-notice.error {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
}

.shaker-otp-notice.success {
    background: #f0fff4;
    border-left: 4px solid #38a169;
    color: #276749;
}

/* ── Field label ──────────────────────────────────────────────────────────── */
.shaker-otp-field {
    margin-bottom: 22px;
}

.shaker-otp-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* ── Phone input row ──────────────────────────────────────────────────────── */
.shaker-phone-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.shaker-phone-wrap:focus-within {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.12);
}

.shaker-flag {
    padding: 0 6px 0 12px;
    font-size: 20px;
    line-height: 1;
    user-select: none;
}

.shaker-prefix {
    padding: 12px 10px 12px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
    background: #f7fafc;
}

.shaker-phone-wrap input[type="tel"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    background: transparent !important;
    color: #1a1a2e;
    min-width: 0;
}

/* ── OTP digit boxes ──────────────────────────────────────────────────────── */
.shaker-digit-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.shaker-digit {
    width: 52px  !important;
    height: 60px !important;
    text-align: center;
    font-size: 26px !important;
    font-weight: 700;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    outline: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #1a1a2e;
    caret-color: transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 0 !important;
}

.shaker-digit:focus {
    border-color: #2b6cb0 !important;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15) !important;
}

.shaker-digit.filled {
    border-color: #48bb78 !important;
    background: #f0fff4 !important;
}

/* ── Primary button ───────────────────────────────────────────────────────── */
.shaker-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 4px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
}

.shaker-btn:hover:not(:disabled) {
    background: #2d2d50;
}

.shaker-btn:active:not(:disabled) {
    transform: scale(0.985);
}

.shaker-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ── Sub-actions row (Resend / Change number) ─────────────────────────────── */
.shaker-sub-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #718096;
}

.shaker-sep {
    color: #cbd5e0;
}

.shaker-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #2b6cb0;
    transition: color 0.15s;
}

.shaker-link-btn:hover:not(:disabled) {
    color: #1a4a80;
    text-decoration: underline;
}

.shaker-link-btn:disabled {
    color: #a0aec0;
    cursor: default;
    text-decoration: none;
}

/* ── Success screen ───────────────────────────────────────────────────────── */
.shaker-success-box {
    text-align: center;
    padding: 24px 0 8px;
}

.shaker-check {
    width: 68px;
    height: 68px;
    line-height: 68px;
    background: #38a169;
    color: #fff;
    border-radius: 50%;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    animation: shaker-pop 0.35s ease;
}

@keyframes shaker-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

.shaker-success-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #276749;
}

.shaker-success-box p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ── OR divider ───────────────────────────────────────────────────────────── */
.shaker-or-divider {
    display: flex;
    align-items: center;
    margin: 32px auto 28px;
    max-width: 420px;
    gap: 14px;
}

.shaker-or-divider::before,
.shaker-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.shaker-or-divider span {
    font-size: 12px;
    color: #a0aec0;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ── Password login section (below OTP) ───────────────────────────────────── */
.shaker-password-login {
    max-width: 420px;
    margin: 0 auto 40px;
}

.shaker-pw-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

/* ── wp-login.php  overrides ──────────────────────────────────────────────── */
/* OTP form sits above the default login form. Default form is fully intact. */
body.login #login {
    max-width: 440px !important;
    padding-top: 10px;
}

body.login #shaker-otp-app {
    margin-bottom: 24px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .shaker-otp-wrapper {
        padding: 24px 18px;
        border-radius: 0;
        box-shadow: none;
    }

    .shaker-digit {
        width: 42px  !important;
        height: 50px !important;
        font-size: 22px !important;
        border-radius: 8px !important;
    }

    .shaker-digit-row {
        gap: 6px;
    }
}
