/* بلمو — برند مشترک پلتفرم روانشناسی */
:root {
  --blemo-green: #1a6b45;
  --blemo-green-dark: #145a38;
  --blemo-green-light: #e8f5ee;
  --blemo-green-soft: #f4faf7;
  --blemo-green-glow: rgba(26, 107, 69, 0.18);
  --blemo-text: #0f172a;
  --blemo-muted: #64748b;
  --blemo-border: #dce8e0;
}

.blemo-brand {
  text-align: center;
}

.blemo-brand--login {
  margin-bottom: 28px;
}

.blemo-brand--login .blemo-brand__title {
  display: none;
}

.blemo-brand--login .blemo-brand__logo {
  width: min(200px, 66vw);
  margin-bottom: 6px;
}

.blemo-brand__logo {
  display: block;
  width: min(180px, 62vw);
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}

/* لوگو در سایدبار پنل‌ها */
.blemo-brand--sidebar.blemo-brand--compact .blemo-brand__logo {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.blemo-brand__logo--prof {
  width: auto;
  max-width: 132px;
  height: 40px;
  padding: 2px 6px;
}

/* لوگوی باکس گوشه‌گرد — ورود سایت و هدر (هم‌سبک سایدبار پنل‌ها) */
.auth-logo.blemo-brand__logo--prof,
.gb-header__logo.blemo-brand__logo--prof {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(26, 107, 69, 0.08);
}

.auth-logo.blemo-brand__logo--prof {
  width: 56px;
  height: 56px;
  max-width: 56px;
  margin: 0 auto 10px;
  padding: 6px;
}

.gb-header__logo.blemo-brand__logo--prof {
  width: 40px;
  height: 40px;
  max-width: 40px;
  margin: 0;
  padding: 3px;
}

.blemo-brand__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blemo-muted);
}

.blemo-brand__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blemo-green-dark);
  line-height: 1.2;
}

.blemo-brand__title--sm {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.blemo-brand__tagline {
  margin: 10px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blemo-muted);
  line-height: 1.55;
}

.blemo-brand--compact {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.blemo-brand--sidebar .blemo-brand__eyebrow {
  display: none;
}

.blemo-brand--sidebar .blemo-brand__tagline {
  display: none;
}

/* لاگین سبز-سفید (پنل درمانگر / مراجع) */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(26, 107, 69, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(26, 107, 69, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fcf9 0%, #ffffff 48%, #eef7f1 100%);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blemoOrbFloat 9s ease-in-out infinite alternate;
}

.orb1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(26, 107, 69, 0.35), transparent);
  top: -12%;
  right: -8%;
}

.orb2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent);
  bottom: -8%;
  left: -6%;
  animation-delay: 2.5s;
}

.orb3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(26, 107, 69, 0.15), transparent);
  top: 42%;
  left: 42%;
  animation-delay: 4s;
}

@keyframes blemoOrbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, 16px) scale(1.06); }
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--blemo-border);
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  color: var(--blemo-text);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-form input,
.login-form select,
.login-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--blemo-border);
  border-radius: 12px;
  color: var(--blemo-text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input::placeholder {
  color: #94a3b8;
}

.login-form input:focus,
.login-form select:focus {
  outline: none;
  border-color: var(--blemo-green);
  box-shadow: 0 0 0 3px var(--blemo-green-glow);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.login-form .input-wrapper input {
  padding-right: 42px;
}

.btn-login {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--blemo-green) 0%, var(--blemo-green-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 24px var(--blemo-green-glow);
  margin-top: 4px;
}

.btn-login:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(26, 107, 69, 0.28);
}

.login-page .auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--blemo-green-soft);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--blemo-border);
}

.login-page .auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--blemo-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.login-page .auth-tab.active {
  background: #fff;
  color: var(--blemo-green-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.login-page .error-msg {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.login-page .login-foot-link {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--blemo-muted);
}

.login-page .login-foot-link a {
  color: var(--blemo-green);
  font-weight: 600;
  text-decoration: none;
}

.login-page .login-foot-link a:hover {
  text-decoration: underline;
}
