/* Mayabin Pay — Customer Auth v6.0.4 */
.sp-auth-wrap {
    background: linear-gradient(160deg, #f0f4ff 0%, #fef4ff 50%, #fff7ed 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, sans-serif;
    box-sizing: border-box;
}
.sp-auth-wrap * { box-sizing: border-box; }

.sp-auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 44px 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 60px -12px rgba(38, 50, 110, 0.15);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sp-auth-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    line-height: 1;
}

.sp-auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.sp-auth-sub {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 24px;
    line-height: 1.55;
}

.sp-auth-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.sp-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-auth-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #344054;
    line-height: 1.35;
}

.sp-auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}
.sp-auth-field input:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}
.sp-auth-field input.bad {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.sp-auth-field small {
    color: #98a2b3;
    font-size: 0.78rem;
    margin-top: 2px;
    line-height: 1.4;
}

.sp-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.sp-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #475467;
    cursor: pointer;
    line-height: 1.4;
}
.sp-auth-check input {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: #4338ca;
}
.sp-auth-check-full {
    padding: 12px 0;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
    margin: 4px 0;
    width: 100%;
}

.sp-auth-link {
    color: #4338ca;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}
.sp-auth-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

.sp-auth-btn {
    width: 100%;
    padding: 14px 22px;
    background: #4338ca;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.28);
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sp-auth-btn:hover { background: #3730a3; transform: translateY(-1px); }
.sp-auth-btn:active { transform: translateY(0); }
.sp-auth-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.sp-auth-btn.loading .sp-auth-btn-t { visibility: hidden; }
.sp-auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sp-auth-spin 0.8s linear infinite;
}
.sp-auth-btn { position: relative; }
@keyframes sp-auth-spin { to { transform: rotate(360deg); } }

.sp-auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
    line-height: 1.5;
}
.sp-auth-footer a {
    color: #4338ca;
    font-weight: 600;
    text-decoration: none;
}
.sp-auth-footer a:hover { text-decoration: underline; }

.sp-auth-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.55;
    text-align: left;
}
.sp-auth-msg-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}
.sp-auth-msg-success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}
.sp-auth-msg-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.sp-auth-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.sp-auth-msg small { font-size: 0.82rem; opacity: 0.85; display: block; margin-top: 4px; }

.sp-auth-wrap .sp-auth-card .sp-auth-msg:first-of-type { margin-top: 0; }

/* Global auth msg (logged in) */
body .sp-auth-msg {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 24px;
    border-radius: 12px;
}

@media (max-width: 480px) {
    .sp-auth-wrap { padding: 24px 12px; }
    .sp-auth-card { padding: 32px 22px; border-radius: 20px; }
    .sp-auth-icon { font-size: 2.5rem; }
    .sp-auth-title { font-size: 1.5rem; }
    .sp-auth-sub { font-size: 0.88rem; margin-bottom: 20px; }
    .sp-auth-field input { padding: 11px 12px; font-size: 0.92rem; }
    .sp-auth-btn { padding: 13px 18px; font-size: 0.95rem; }
    .sp-auth-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
    .sp-auth-card { padding: 24px 18px; }
    .sp-auth-title { font-size: 1.35rem; }
}
