﻿/* اعداد اولیه */
.doctorlp-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79,70,229,.25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.doctorlp-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(79,70,229,.35); }
.doctorlp-btn:active { transform: translateY(0); opacity: .9; }

/* حالت لاگین شده */
.doctorlp-logged {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 10px;
}
.doctorlp-logged .doctorlp-logout {
  background: #ef4444; color: #fff; padding: 6px 10px; border-radius: 8px; text-decoration: none;
}

/* پس زمینه تار (glass) */
.doctorlp-overlay[hidden] { display: none !important; }
.doctorlp-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  animation: doctorlp-fade .18s ease forwards;
}

/* پاپ آپ */
.doctorlp-modal[hidden] { display: none !important; }
.doctorlp-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  width: min(92vw, 420px);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.15);
  z-index: 9999;
  padding: 20px 20px 16px;
  direction: rtl;
  animation: doctorlp-pop .18s ease forwards;
}

/* بستن */
.doctorlp-close {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: #f3f4f6;
  color: #111827;
  font-size: 20px;
  cursor: pointer;
  padding:0px !important;
}

/* عنوان */
.doctorlp-title {
  margin: 8px 0 16px; font-size: 18px; color: #111827; text-align: center;
}

.doctorlp-auth-switch {
  display: flex;
  gap: 8px;
  background: #eef2ff;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
}
.doctorlp-auth-btn {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #312e81;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s;
}
.doctorlp-auth-btn.active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 10px 28px rgba(79,70,229,.3);
}

.doctorlp-auth-section[hidden] { display: none !important; }
.doctorlp-auth-section {
  margin-top: 10px;
}

/* تب ورود */
.doctorlp-mode-switch {
  display: flex;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}
.doctorlp-mode-btn {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.doctorlp-mode-btn.active {
  background: #111827;
  color: #fff;
}

.doctorlp-form label { display: block; margin-bottom: 12px; }
.doctorlp-form label span { display: block; margin-bottom: 6px; color: #374151; font-size: 14px; }

.doctorlp-form input[type="text"],
.doctorlp-form input[type="password"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
  outline: none;
}
.doctorlp-form input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

.doctorlp-otp-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.doctorlp-otp-row input {
  flex: 1;
}
.doctorlp-otp-send {
  border: 0;
  background: #4f46e5;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  min-width: 120px;
  transition: opacity .2s;
}
.doctorlp-otp-send:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.doctorlp-otp-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.doctorlp-actions { margin-top: 14px; text-align: center; }
.doctorlp-submit {
  background: #111827; color: #fff;
  border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer;
}
.doctorlp-submit:hover { opacity: .92; }

/* پیغام */
.doctorlp-msg { margin-top: 12px; text-align: center; min-height: 22px; color: #6b7280; }

/* انیمیشن */
@keyframes doctorlp-fade { to { opacity: 1; } }
@keyframes doctorlp-pop { to { transform: translate(-50%,-50%) scale(1); } }


.doctorlp-wrap.logged-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.doctorlp-btn.account-btn {
  background: linear-gradient(135deg, #059669, #10b981);
}
.doctorlp-account-link-a {
  color: #059669;
  font-size: 14px;
  text-decoration: underline;
  transition: color .2s;
}
.doctorlp-account-link-a:hover {
  color: #047857;
}
