/* کانتینر اصلی */
.mp-auth-container {
    max-width: 400px;
    margin: 40px auto;
    font-family: inherit;
    direction: rtl;
    line-height: 1.6;
}

.mp-auth-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
    position: relative;
}

.mp-auth-box h3 {
    text-align: center;
    color: #111827;
    margin: 0 0 25px 0;
    font-size: 1.2rem;
    font-weight: 800;
}

/* --- باکس پیام‌ها (جایگزین Alert) --- */
.mp-message-box {
    display: none; /* پیشفرض مخفی */
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}
.mp-msg-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.mp-msg-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.mp-msg-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* --- تب‌های بالا --- */
.mp-login-toggle {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 25px;
}
.mp-login-toggle button {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    transition: 0.2s;
    font-family: inherit;
}
.mp-login-toggle button.active {
    background: #fff;
    color: #4f46e5;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* --- فرم‌ها --- */
.mp-form-group { margin-bottom: 16px; }
.mp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}
.mp-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}
.mp-form-group input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* اینپوت کد تایید */
.mp-otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.4rem !important;
    font-weight: bold;
    color: #1f2937;
}

/* --- دکمه‌ها --- */
.mp-btn-primary {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.mp-btn-primary:hover { background: #4338ca; }
.mp-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

/* دکمه‌های لینک‌دار (ارسال مجدد / ویرایش) - استایل جدید */
.mp-btn-text-action {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mp-btn-text-action:hover {
    background: #eef2ff;
}
.mp-btn-text-secondary {
    color: #6b7280;
}
.mp-btn-text-secondary:hover {
    background: #f3f4f6;
    color: #374151;
}

/* لینک فراموشی رمز */
.mp-forgot-link {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
    text-decoration: none;
}
.mp-forgot-link:hover { color: #4f46e5; }

/* فوتر و سپراتور */
.mp-separator {
    display: flex;
    align-items: center;
    color: #9ca3af;
    margin: 20px 0;
    font-size: 12px;
}
.mp-separator::before, .mp-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}
.mp-separator::before { margin-left: 10px; }
.mp-separator::after { margin-right: 10px; }

.mp-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}
.mp-auth-footer a {
    color: #4f46e5;
    font-weight: bold;
    text-decoration: none;
}

/* دکمه گوگل */
.mp-btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}
.mp-btn-google:hover { background: #f9fafb; border-color: #d1d5db; }


/* ... کدهای قبلی سرجایشان باشند ... */

/* استایل‌های جدید برای این مرحله */

.mp-half-row {
    display: flex;
    gap: 10px;
}
.mp-half-row .mp-form-group {
    flex: 1;
}

/* دکمه آکاردئونی آدرس */
.mp-accordion-toggle {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #4b5563;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: right;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    margin-bottom: 15px;
}
.mp-accordion-toggle:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #eef2ff;
}
.mp-accordion-toggle::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: bold;
}
.mp-accordion-toggle.active::after {
    content: '-';
}

/* محتوای آدرس (مخفی) */
.mp-address-section {
    display: none; /* پیشفرض بسته */
    background: #fdfdfd;
    border: 1px solid #f3f4f6;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    margin-top: -12px; /* چسبیدن به دکمه */
    margin-bottom: 20px;
}

/* باکس نقشه (Placeholder) */
.mp-map-placeholder {
    height: 150px;
    background: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.8rem;
    border: 2px solid #fff;
}
/* ... کدهای قبلی ... */

/* نوار سنجش قدرت رمز عبور */
.mp-pass-strength {
    height: 4px;
    background: #e5e7eb;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
    direction: ltr; /* پر شدن از چپ */
}
.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

/* رنگ بندی قدرت */
.strength-weak { width: 30%; background-color: #ef4444; }    /* قرمز */
.strength-medium { width: 60%; background-color: #f59e0b; }  /* نارنجی */
.strength-strong { width: 100%; background-color: #10b981; } /* سبز */

.mp-pass-input {
    letter-spacing: 2px; /* خوانایی بهتر رمز */
}

/* ... کدهای قبلی ... */

/* نگهدارنده فیلد پسورد برای قرارگیری آیکون چشم */
.mp-pass-wrapper {
    position: relative;
    width: 100%;
}

/* آیکون چشم (نمایش/مخفی) */
.mp-pass-toggle {
    position: absolute;
    left: 10px; /* سمت چپ فیلد */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.2rem;
    z-index: 2;
    user-select: none;
}
.mp-pass-toggle:hover {
    color: #4b5563;
}

/* وقتی آیکون هست، پدینگ سمت چپ اینپوت باید بیشتر بشه که متن نره زیر آیکون */
.mp-pass-input-icon {
    padding-left: 40px !important; 
}


/* ... کدهای قبلی ... */

/* این کد برای نمایش صحیح نقشه در وردپرس حیاتی است */
.leaflet-pane, 
.leaflet-tile, 
.leaflet-marker-icon, 
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* اطمینان از اینکه باکس نقشه ارتفاع دارد */
#mp-reg-map-box {
    height: 250px !important; 
    width: 100%; 
    background: #f0f0f0; /* رنگ پس‌زمینه طوسی تا وقتی نقشه لود شود */
    z-index: 1;
}


/* ... کدهای قبلی ... */

/* --- استایل مدرن دکمه‌های زوم نقشه (Leaflet) --- */
.leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.leaflet-bar a {
    background-color: #fff !important;
    color: #4b5563 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-weight: bold !important;
    font-size: 18px !important;
    transition: 0.2s;
}
.leaflet-bar a:hover {
    background-color: #4f46e5 !important; /* رنگ اصلی */
    color: #fff !important;
}
.leaflet-bar a:first-child { border-top-left-radius: 8px !important; border-top-right-radius: 8px !important; }
.leaflet-bar a:last-child { border-bottom-left-radius: 8px !important; border-bottom-right-radius: 8px !important; border-bottom: none !important; }

/* --- استایل دکمه تکمیل ثبت نام --- */
#mp-btn-final-register {
    width: 100%;
    padding: 14px;
    background: #10b981; /* سبز */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}
#mp-btn-final-register:hover {
    background: #059669;
}
#mp-btn-final-register:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}