/* ==========================================================================
   ✨ SPM AUTHENTICATION & LOGIN/REGISTER/FORGOT PASSWORD CSS
   (Mobile-Optimized Typography & Ultra-Clean UI)
   ========================================================================== */

/* 1. Page Wrapper */
.spm-auth-wrapper {
    padding: 40px 0 60px;
    background: #f8fafc;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* 2. Main Card */
.spm-auth-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(225, 29, 72, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* 3. Left Side Branding Panel (Desktop Only) */
.spm-auth-side-panel {
    background: linear-gradient(145deg, #e11d48 0%, #be123c 50%, #9f1239 100%);
    padding: 38px 30px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.spm-auth-side-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.spm-auth-logo-circle-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    padding: 6px;
    margin: 0 auto 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.85);
}

.spm-auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.spm-auth-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
    color: #ffffff;
}

.spm-auth-side-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #ffffff;
}

.spm-auth-side-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #ffe4e6;
    margin-bottom: 20px;
}

.spm-auth-trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.spm-auth-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff1f2;
    line-height: 1.5;
}

.spm-auth-trust-item i {
    color: #fbbf24;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 4. Form Panel (Desktop & Mobile) */
.spm-auth-form-panel {
    padding: 34px 30px;
}

.spm-auth-header-title {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 4px 0 2px;
}

.spm-auth-header-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 5. Input Groups & Labels */
.spm-auth-input-group {
    margin-bottom: 16px;
}

.spm-auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
    letter-spacing: 0.1px;
}

.spm-auth-input-wrap {
    position: relative;
    width: 100%;
}

.spm-auth-input,
.spm-auth-select {
    width: 100%;
    height: 46px;
    padding: 8px 14px 8px 40px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}

.spm-auth-input::placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.spm-auth-input::-webkit-input-placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.spm-auth-input::-moz-placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.spm-auth-input:-ms-input-placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.spm-auth-input.no-icon,
.spm-auth-select.no-icon {
    padding-left: 14px;
}

.spm-auth-input:focus,
.spm-auth-select:focus {
    background: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.spm-auth-input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.spm-auth-input:focus ~ .spm-auth-input-icon,
.spm-auth-select:focus ~ .spm-auth-input-icon {
    color: #e11d48;
}

.spm-auth-eye-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 8px;
    transition: color 0.2s ease;
    z-index: 3;
}

.spm-auth-eye-btn:hover {
    color: #e11d48;
}

/* 6. Date of Birth 3-Select Dropdown Grid */
.spm-dob-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 8px;
}

.spm-dob-select {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 6px 10px;
    outline: none;
    transition: all 0.2s ease;
}

.spm-dob-select:focus {
    border-color: #e11d48;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

/* 7. Action Button */
.spm-auth-btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.28);
    cursor: pointer;
    transition: all 0.25s ease;
}

.spm-auth-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.38);
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
}

.spm-auth-footer-links {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.tick-icon {
    font-size: 11.5px;
    margin-left: 4px;
}

.spm-auth-textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
    resize: vertical;
}

.spm-auth-textarea:focus {
    background: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.spm-auth-textarea::placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

/* Step Progress Header */
.spm-step-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffe4e6;
    color: #e11d48;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
}

.spm-step-progress-wrapper {
    margin-bottom: 20px;
}

.spm-step-progress-bar-bg {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.spm-step-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e11d48 0%, #be123c 100%);
    border-radius: 10px;
}

/* Photo Upload Box */
.spm-photo-upload-card {
    background: #fff1f2;
    border: 1.5px dashed #fda4af;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.spm-photo-avatar-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
    flex-shrink: 0;
}

.spm-photo-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spm-photo-content {
    flex: 1;
}

/* 8. Mobile Responsiveness (< 768px & < 576px) */
@media screen and (max-width: 767.98px) {
    .spm-auth-wrapper {
        padding: 16px 0 32px !important;
    }

    .spm-auth-card {
        border-radius: 18px !important;
        border: 1px solid #f1f5f9 !important;
    }

    .spm-auth-form-panel {
        padding: 20px 14px !important;
    }

    .spm-auth-header-title {
        font-size: 18px !important;
    }

    .spm-auth-header-desc {
        font-size: 12px !important;
    }

    .spm-auth-label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    .spm-auth-input,
    .spm-auth-select {
        height: 44px !important;
        font-size: 13px !important;
        padding-left: 36px !important;
        border-radius: 10px !important;
    }

    .spm-auth-textarea {
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    .spm-auth-input-icon {
        left: 11px !important;
        font-size: 13px !important;
    }

    .spm-dob-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 6px !important;
    }

    .spm-dob-select {
        height: 42px !important;
        font-size: 12px !important;
        padding: 4px 6px !important;
        border-radius: 10px !important;
    }

    .spm-auth-btn-submit {
        height: 46px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .spm-auth-footer-links p {
        font-size: 12.5px !important;
    }

    .spm-photo-upload-card {
        padding: 12px !important;
        gap: 12px !important;
    }

    .spm-photo-avatar-box {
        width: 58px !important;
        height: 58px !important;
    }
}

/* Rashi Guide Modal */
.spm-rashi-modal-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.spm-rashi-modal-card:hover {
    background: #fff1f2;
    border-color: #fda4af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.12);
}

.spm-rashi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.spm-rashi-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #e11d48;
}

.spm-rashi-letters {
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

/* 🌟 Confirm & Review Details Modal */
.spm-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spm-confirm-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.spm-confirm-card.full-width {
    grid-column: 1 / -1;
}

.spm-confirm-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.spm-confirm-value {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
    line-height: 1.4;
}

.spm-confirm-photo-preview {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #fda4af;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
    margin-top: 6px;
}

@media screen and (max-width: 767.98px) {
    .spm-confirm-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .spm-confirm-card {
        padding: 10px 12px !important;
    }
}

/* 🌟 Choice Cards (Radio Select Option Buttons) */
.spm-choice-card {
    display: block;
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
}

.spm-choice-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.spm-choice-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spm-choice-input:checked + .spm-choice-box {
    background: #fff1f2;
    border-color: #e11d48;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.15);
}

.spm-choice-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.spm-choice-input:checked + .spm-choice-box .spm-choice-icon {
    transform: scale(1.15);
}

.spm-choice-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.spm-choice-input:checked + .spm-choice-box .spm-choice-title {
    color: #e11d48;
}

/* ==========================================================================
   ✨ MULTIPLE PROFILE SELECTION STYLING (LOGIN)
   ========================================================================== */
.spm-multiprofile-container {
    animation: spmFadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spmFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spm-multiprofile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.spm-multiprofile-list::-webkit-scrollbar {
    width: 5px;
}
.spm-multiprofile-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.spm-multiprofile-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.spm-multiprofile-list::-webkit-scrollbar-thumb:hover {
    background: #fda4af;
}

.spm-multiprofile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.spm-multiprofile-card:hover {
    border-color: #e11d48;
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.12);
    transform: translateY(-2px);
}

.spm-multiprofile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.spm-multiprofile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.spm-multiprofile-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spm-multiprofile-info {
    flex-grow: 1;
    min-width: 0;
}

.spm-multiprofile-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.spm-multiprofile-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.spm-multiprofile-id-badge {
    font-family: monospace;
    font-size: 10.5px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1px 6px;
    font-weight: 600;
}

.spm-multiprofile-action-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.spm-multiprofile-card:hover .spm-multiprofile-action-btn {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.spm-back-to-login-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spm-back-to-login-btn:hover {
    color: #e11d48;
}
