/*
  Base styles shared across board pages
  Keep selectors scoped to .acb-* to avoid leaking into theme styles
*/

/* State utilities */
.acb-is-hidden { display: none !important; }

.acb-board { max-width: 1700px; margin: 0 auto; padding: 0 15px; }

/* Notices */
.acb-notice { background:#f6fafd; border:1px solid #d2e7f7; color:#066AAF; padding:10px 12px; border-radius:4px; margin-bottom:12px; }
.acb-error { background:#fff4f4; border:1px solid #ffd6d6; color:#b00; padding:10px 12px; border-radius:4px; margin-bottom:12px; margin-top: 20px; margin-bottom: 20px; }

/* Shared actions row */
.acb-actions { display:flex; justify-content:flex-end; gap:10px; margin:20px 0; }

/* -------------------------------------------------------------------------- */
/* Password form (shared across view/edit)                                     */
/* -------------------------------------------------------------------------- */

.acb-password-screen {
  width: 100%;
  min-height: 70vh;
  padding: 40px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}

.acb-password-card {
  background: #fff;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.acb-password-card,
.acb-password-card *,
.acb-password-card *::before,
.acb-password-card *::after {
  box-sizing: border-box;
}

.acb-password-card__icon {
  margin-bottom: 20px;
  color: #BD1A03;
}

.acb-password-card__icon svg {
  width: 48px;
  height: 48px;
  display: inline-block;
}

.acb-password-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.acb-password-card__description {
  margin: 0 0 30px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.acb-password-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.acb-password-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acb-password-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.acb-password-form__input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.acb-password-form__input:focus {
  border-color: #BD1A03;
  box-shadow: 0 0 0 3px rgba(189, 26, 3, 0.12);
}

.acb-password-form__group.is-error .acb-password-form__input {
  border-color: #BD1A03;
  background-color: #fff0f0;
}

.acb-password-form__error {
  display: none;
  color: #BD1A03;
  font-size: 13px;
  margin-top: 6px;
  align-items: center;
  gap: 6px;
}

.acb-password-form__group.is-error .acb-password-form__error {
  display: flex;
}

.acb-password-form__buttons {
  display: flex;
  gap: 10px;
}

.acb-password-form__button {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acb-password-form__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.acb-password-form__button--submit {
  background-color: #BD1A03;
  color: #fff;
}

.acb-password-form__button--submit:hover {
  background-color: #9c1502;
}

.acb-password-form__button--cancel {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #555;
}

.acb-password-form__button--cancel:hover {
  background-color: #f9f9f9;
  border-color: #ccc;
}

@media (max-width: 480px) {
  .acb-password-screen {
    min-height: 60vh;
    padding: 30px 15px;
  }

  .acb-password-card {
    padding: 28px 20px;
  }

  .acb-password-form__buttons {
    flex-direction: column-reverse;
  }
}
