/* 회원 앱 — 로그인 모달 (홈·게시판 공통) */
.app-login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.app-login-modal[hidden] {
  display: none !important;
}
.app-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--app-overlay);
  animation: appLoginFadeIn 0.2s ease;
}
.app-login-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 640px);
  overflow-y: auto;
  margin: 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0));
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #1c1c1c 0%, #121212 100%);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  animation: appLoginSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-login-modal__glow {
  pointer-events: none;
  position: absolute;
  top: -40px;
  left: 50%;
  width: 200px;
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
}
.app-login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #888;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.app-login-modal__head {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}
.app-login-modal__logo {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 72px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.app-login-modal__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #f5e6b8;
}
.app-login-modal__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9a9a9a;
}
.app-login-modal__form .login-field__label {
  color: #b8b8b8;
}
.app-login-modal__input {
  color: #f2f2f2 !important;
  background: #222 !important;
  border-color: #3a3a3a !important;
}
.app-login-modal__input:focus {
  border-color: #c9a227 !important;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2) !important;
}

.board-guest-prompt {
  margin: 0;
  padding: 18px 16px;
  border-radius: 12px;
  text-align: center;
  background: var(--app-surface-muted);
  border: 1px dashed var(--app-border);
}
.board-guest-prompt__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--app-text-muted);
}
.board-guest-prompt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1208;
  background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.25);
  cursor: pointer;
}

@keyframes appLoginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes appLoginSlideUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 480px) {
  .app-login-modal {
    align-items: center;
    padding: 20px;
  }
  .app-login-modal__panel {
    border-radius: 18px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    animation: appLoginScaleIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes appLoginScaleIn {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
}
