/* ============================================================
   机构登录弹窗（官网 + 平台共用，唯一来源）
   仅定义 .olm-* 弹窗类；平台引导区与头部按钮样式在平台 styles.css
   ============================================================ */
.olm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(4, 18, 14, .68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.olm-dialog {
  position: relative;
  width: min(400px, 100%);
  box-sizing: border-box;
  background: #fffefa;
  border: 1px solid #dbe5d8;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(3, 20, 12, .35);
  padding: 32px 30px 28px;
  color: #26342f;
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: olm-in .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes olm-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.olm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8b9a8e;
  font-size: 22px;
  line-height: 1;
  border-radius: 8px;
}
.olm-close:hover { background: #eef3e9; color: #395b47; }
.olm-title {
  margin: 0;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #253f35;
}
.olm-subtitle {
  margin: 8px 0 24px;
  font-size: 12px;
  line-height: 1.7;
  color: #84938a;
}
.olm-form { display: flex; flex-direction: column; gap: 16px; }
.olm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.olm-field label { font-size: 12px; font-weight: 700; color: #4d6556; }
.olm-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe5db;
  border-radius: 9px;
  padding: 12px 13px;
  background: #fffefa;
  color: #334a39;
  font-size: 13px;
  min-width: 0;
  outline: none;
}
.olm-field input:focus { border-color: #64856e; box-shadow: 0 0 0 3px rgba(100, 133, 110, .13); }
.olm-error {
  border-radius: 8px;
  border: 1px solid #f0d3c8;
  background: #fdf1ec;
  color: #a2503a;
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 12px;
}
.olm-error[hidden] { display: none; }
.olm-actions { display: flex; gap: 10px; margin-top: 4px; }
.olm-btn {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.olm-btn-cancel { border: 1px solid #dbe5db; background: #fff; color: #5c6f61; }
.olm-btn-cancel:hover { background: #f1f5ee; border-color: #c4d4c4; }
.olm-btn-submit { border: 1px solid #2f5d49; background: #2f5d49; color: #f7fbf4; }
.olm-btn-submit:hover { background: #244a39; border-color: #244a39; }
.olm-btn:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 560px) {
  .olm-overlay { padding: 14px; }
  .olm-dialog { padding: 26px 20px 22px; border-radius: 14px; }
  .olm-title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .olm-dialog { animation: none; }
}
