/* =========================================================
   TOP 부천 - auth.css
   로그인 / 회원가입 / 비번찾기 / 마이페이지 공통 스타일
   ========================================================= */

/* ---------- Auth Container ---------- */
.auth-container {
  padding: var(--space-xl) var(--space-md) var(--space-3xl);
  max-width: 480px;
}

.auth-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(212, 175, 55, 0.2) inset,
    0 12px 32px rgba(0, 0, 0, 0.5);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.85;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

/* 이중 보더 링 */
.auth-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

/* ---------- Form ---------- */
.auth-form {
  position: relative;
  z-index: 1;
}

.auth-field {
  margin-bottom: var(--space-md);
}

.auth-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.auth-field label .req {
  color: var(--status-busy);
  margin-left: 2px;
}

.auth-field label .muted {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.12),
    0 0 16px rgba(212, 175, 55, 0.1);
}

.auth-field input::placeholder {
  color: var(--text-muted);
}

/* ---------- Options Row ---------- */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.auth-checkbox.auth-terms {
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-body);
}

.auth-checkbox.auth-terms strong {
  color: var(--gold-light);
  font-weight: 600;
}

.auth-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.auth-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ---------- Submit Button ---------- */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
  margin-top: var(--space-sm);
}

/* ---------- Divider ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle));
}

.auth-divider::after {
  background: linear-gradient(270deg, transparent, var(--border-subtle));
}

.auth-divider span {
  padding: 0 var(--space-md);
}

/* ---------- Footer ---------- */
.auth-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.auth-footer p {
  margin-bottom: 4px;
  line-height: 1.7;
}

.auth-footer strong {
  color: var(--gold-light);
}

/* ---------- Messages ---------- */
.auth-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.auth-msg svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-msg-error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.4);
  color: #ff7a77;
}

.auth-msg-error svg {
  color: var(--status-busy);
}

.auth-msg-success {
  background: rgba(244, 212, 124, 0.08);
  border: 1px solid rgba(244, 212, 124, 0.35);
  color: var(--status-live);
}

.auth-msg-success svg {
  color: var(--status-live);
}

.auth-msg p {
  margin: 0;
}

/* =========================================================
   MYPAGE
   ========================================================= */
.mypage-container {
  padding: var(--space-xl) var(--space-md) var(--space-3xl);
}

.mypage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.mypage-card {
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.03), transparent 30%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.mypage-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-weight: 700;
}

.mypage-card-title svg {
  color: var(--gold);
}

/* Info rows */
.mypage-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mypage-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.08);
}

.mypage-info .info-row:last-child {
  border-bottom: none;
}

.mypage-info .info-row .key {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.mypage-info .info-row .val {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Booking History */
.mypage-bookings {
  margin-bottom: var(--space-lg);
}

.mypage-booking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.booking-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease);
}

.booking-item:hover {
  border-color: var(--border-gold);
}

.booking-item-room {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding: 6px 12px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  min-width: 60px;
  text-align: center;
}

.booking-item-meta {
  font-size: 0.82rem;
  color: var(--text-body);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.booking-item-meta span {
  white-space: nowrap;
}

.booking-item-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pending {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.status-confirmed {
  background: rgba(244, 212, 124, 0.12);
  color: var(--status-live);
  border: 1px solid rgba(244, 212, 124, 0.4);
}

.status-cancelled {
  background: rgba(138, 125, 99, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.status-noshow {
  background: rgba(229, 57, 53, 0.12);
  color: #ff7a77;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.status-completed {
  background: rgba(168, 135, 43, 0.12);
  color: var(--gold-dark);
  border: 1px solid var(--border-gold);
}

.mypage-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-lg) 0;
  font-size: 0.9rem;
}

/* Mypage Actions */
.mypage-actions {
  text-align: center;
  margin-top: var(--space-xl);
}

.mypage-logout {
  max-width: 200px;
  margin: 0 auto;
  display: inline-flex;
  width: auto;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .mypage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-container {
    padding-top: var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .auth-container {
    max-width: 520px;
  }

  .auth-card {
    padding: var(--space-2xl);
  }
}
