/* 로그인 버튼·로그인 창·안내 토스트. 색은 styles.css 변수를 쓰고, 변수가 없는 화면에서는 시스템 색을 쓴다. */

.coinAuthBtn {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.coinAuthBtn:hover {
  border-color: rgba(148, 163, 184, 0.5);
}

.coinAuthBtn[data-authed="1"] {
  border-color: var(--accent, LinkText);
}

.coinAuthOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

.coinAuthOverlay[hidden] {
  display: none;
}

.coinAuthBox {
  width: min(380px, 100%);
  padding: 20px;
  border: 1px solid var(--line, GrayText);
  border-radius: 10px;
  background: var(--panel, Canvas);
  color: var(--text, CanvasText);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  font-family: Arial, "Malgun Gothic", sans-serif;
}

.coinAuthBox h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.coinAuthBox p {
  margin: 0 0 14px;
  color: var(--muted, GrayText);
  font-size: 13px;
  line-height: 1.5;
}

.coinAuthBox label {
  display: grid;
  gap: 6px;
  color: var(--muted, GrayText);
  font-size: 13px;
  font-weight: 700;
}

.coinAuthBox input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line, GrayText);
  border-radius: 8px;
  background: var(--bg, Canvas);
  color: var(--text, CanvasText);
  font: inherit;
}

.coinAuthRow {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.coinAuthRow button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line, GrayText);
  border-radius: 8px;
  background: transparent;
  color: var(--text, CanvasText);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.coinAuthRow button[type="submit"] {
  border-color: var(--accent, LinkText);
  background: var(--accent, LinkText);
  color: Canvas;
}

.coinAuthRow button:disabled {
  opacity: 0.6;
  cursor: default;
}

.coinAuthError {
  min-height: 18px;
  margin-top: 10px;
  color: var(--gain, red);
  font-size: 13px;
}

.coinAuthToast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1px solid var(--line, GrayText);
  border-radius: 10px;
  background: var(--panel, Canvas);
  color: var(--text, CanvasText);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  font-family: Arial, "Malgun Gothic", sans-serif;
  font-size: 14px;
  transform: translateX(-50%);
}

.coinAuthToast[hidden] {
  display: none;
}

.coinAuthToast button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--accent, LinkText);
  border-radius: 8px;
  background: var(--accent, LinkText);
  color: Canvas;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* 상단 메뉴가 세로로 쌓이는 폭(900px 이하)에서는 별도 줄을 만들지 않고 브랜드 줄 오른쪽 구석에 둔다 */
@media (max-width: 900px) {
  .topNav > .coinAuthBtn {
    position: absolute;
    top: 10px;
    right: 12px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }
}
