/* ── Client Auth Modal — Premium Design ── */
.pas-ca-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: pasCAFadeIn 0.25s ease;
}
@keyframes pasCAFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pas-ca-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 400px;
    width: 92%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
    text-align: center;
    animation: pasCASlideUp 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes pasCASlideUp { from { transform: translateY(30px) scale(0.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.pas-ca-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}
.pas-ca-close:hover { background: #f1f5f9; color: #475569; }

.pas-ca-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(8,116,57,0.12);
}
.pas-ca-icon--success {
    background: linear-gradient(135deg, #ecfdf5, #bbf7d0);
}

.pas-ca-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.pas-ca-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px;
}

.pas-ca-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pas-ca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.pas-ca-btn--primary {
    background: #087439;
    color: #fff;
    box-shadow: 0 2px 8px rgba(8,116,57,0.25);
}
.pas-ca-btn--primary:hover {
    background: #065a2c;
    box-shadow: 0 6px 20px rgba(8,116,57,0.35);
    transform: translateY(-1px);
}

.pas-ca-btn--secondary {
    background: #fff;
    color: #087439;
    border: 1.5px solid #087439;
}
.pas-ca-btn--secondary:hover {
    background: #ecfdf5;
    border-color: #065a2c;
    color: #065a2c;
}

.pas-ca-btn--full { width: 100%; }
.pas-ca-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Form fields ── */
.pas-ca-field {
    text-align: left;
    margin-bottom: 16px;
}

.pas-ca-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.pas-ca-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
    background: #fafbfc;
    transition: all 0.2s;
}
.pas-ca-field input:focus {
    border-color: #087439;
    box-shadow: 0 0 0 4px rgba(8,116,57,0.08);
    background: #fff;
}
.pas-ca-field input::placeholder { color: #94a3b8; }

.pas-ca-error {
    display: none;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.5;
}

.pas-ca-switch {
    margin-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}
.pas-ca-switch a {
    color: #087439;
    text-decoration: none;
    font-weight: 600;
}
.pas-ca-switch a:hover { text-decoration: underline; }

/* ── OTP inputs ── */
.pas-ca-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.pas-ca-otp-digit {
    width: 50px;
    height: 58px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    font-family: 'Inter', monospace;
    background: #fafbfc;
    transition: all 0.2s;
}
.pas-ca-otp-digit:focus {
    border-color: #087439;
    box-shadow: 0 0 0 4px rgba(8,116,57,0.08);
    background: #fff;
}

/* ── Separator ── */
.pas-ca-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.pas-ca-separator::before,
.pas-ca-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .pas-ca-modal { padding: 28px 22px; border-radius: 16px; }
    .pas-ca-title { font-size: 18px; }
    .pas-ca-otp-digit { width: 42px; height: 50px; font-size: 22px; border-radius: 10px; }
    .pas-ca-otp-inputs { gap: 6px; }
    .pas-ca-btn { padding: 12px 20px; font-size: 14px; }
}
