/* Panel login modal (plm-) — brand-consistent with salon-register + auth-card. */
.plm {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.plm[hidden] {
  display: none;
}
.plm__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}
.plm__content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a1a2e);
  border-radius: var(--r-lg, 18px);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(15, 23, 42, 0.25));
  padding: 24px 22px 20px;
}
.plm__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.plm__title {
  font-size: 19px;
  font-weight: 800;
}
.plm__subtitle {
  font-size: 13px;
  color: var(--c-muted, #64748b);
  margin-top: 4px;
}
.plm__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--c-border, #e5e7eb);
  background: transparent;
  color: var(--c-muted, #64748b);
  cursor: pointer;
}
.plm__close:hover {
  color: var(--c-text, #1a1a2e);
  border-color: var(--c-muted, #64748b);
}
.plm__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-700, #0f766e);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--r-md, 12px);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.plm__notice[hidden] {
  display: none;
}
.plm__success {
  text-align: center;
  padding: 12px 4px 4px;
}
.plm__success[hidden] {
  display: none;
}
.plm__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  background: var(--cs-500, #22c55e);
  margin-bottom: 12px;
}
.plm__success-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.plm__success-text {
  font-size: 14px;
  color: var(--c-muted, #64748b);
  margin: 0 0 18px;
}
.plm__success .auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  background: var(--cp-600, #0d9488);
  border: none;
  border-radius: var(--r-md, 12px);
  padding: 13px 16px;
  cursor: pointer;
}
.plm__error {
  font-size: 13.5px;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-md, 12px);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.plm__error[hidden] {
  display: none;
}
.plm__alt {
  font-size: 13.5px;
  color: var(--c-text, #1a1a2e);
  background: var(--c-bg, #faf9f6);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: var(--r-md, 12px);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.plm__alt[hidden] {
  display: none;
}
.plm__alt a {
  font-weight: 700;
  color: var(--cp-600, #0d9488);
}
.plm__form .field {
  margin-bottom: 16px;
}
.plm__form .field__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.plm__form input[type="tel"],
.plm__form input[type="text"] {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border, #e5e7eb);
  border-radius: var(--r-md, 12px);
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a1a2e);
  outline: none;
}
.plm__form input:focus {
  border-color: var(--cp-500, #14b8a6);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.plm__form input[aria-invalid="true"] {
  border-color: #ef4444;
}
.auth-field-error {
  font-size: 12.5px;
  color: #b91c1c;
  margin-top: 6px;
}
.auth-field-error[hidden] {
  display: none;
}
.plm__form .auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  background: var(--cp-600, #0d9488);
  border: none;
  border-radius: var(--r-md, 12px);
  padding: 13px 16px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.plm__form .auth-btn:hover:not(:disabled) {
  opacity: 0.92;
}
.plm__form .auth-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.plm__sentbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--c-muted, #64748b);
  margin-bottom: 12px;
}
.plm__edit {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cp-600, #0d9488);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.plm__otpboxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  direction: ltr;
}
.plm__otpbox {
  flex: 1;
  max-width: 48px;
  height: 52px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 0 !important;
}
.plm__resend {
  text-align: center;
  margin-bottom: 16px;
  min-height: 22px;
}
.plm__cooldown {
  font-size: 13px;
  color: var(--c-muted, #64748b);
}
.plm__cooldown[hidden] {
  display: none;
}
.plm__resendbtn {
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-600, #0d9488);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.plm__resendbtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.plm__footer {
  text-align: center;
  font-size: 13px;
  color: var(--c-muted, #64748b);
  margin-top: 16px;
}
.plm__footer a {
  font-weight: 700;
  color: var(--cp-600, #0d9488);
}
@media (max-width: 480px) {
  .plm {
    align-items: flex-end;
    padding: 0;
  }
  .plm__content {
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .plm__otpboxes {
    gap: 6px;
  }
  .plm__otpbox {
    height: 46px;
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plm__form .auth-btn {
    transition: none;
  }
}
