/* ===================================================
   BABY-BOLAN Auth / Mypage CSS
   =================================================== */

/* ---- Auth専用ページ ---- */
.auth-body {
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: var(--black);
  padding: 16px 24px;
  text-align: center;
}

.auth-logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--white);
  text-decoration: none;
}

.auth-logo span {
  color: var(--gray-300);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.auth-err {
  background: #fff0f0;
  border: 1px solid #ffb3b3;
  color: #c00;
  font-size: .82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .92rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  transition: border-color .2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--black);
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity .2s;
  text-align: center;
}

.auth-btn:hover {
  opacity: .8;
}

.auth-footer-link {
  margin-top: 20px;
  font-size: .82rem;
  color: var(--gray-500);
  text-align: center;
}

.auth-footer-link a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

/* ---- ヘッダー ユーザーエリア ---- */
.header-user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-mypage-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-300);
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: .04em;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}

.header-mypage-btn:hover,
.header-mypage-btn--active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ---- 注文ページ ログインバッジ ---- */
.order-login-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f7f0;
  border: 1px solid #b6d9be;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: #2d7a3a;
  margin-bottom: 20px;
}

.order-logout-link {
  font-size: .78rem;
  color: var(--gray-500);
  text-decoration: underline;
}

/* ---- 注文フォーム パスワードセクション ---- */
.account-section {
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.account-section-title {
  font-size: .95rem !important;
  font-weight: 800;
  margin-bottom: 10px !important;
}

.account-section-desc {
  font-size: .83rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.6;
}

.account-section-optional {
  color: var(--gray-500);
  font-size: .78rem;
}

.account-section-login {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--gray-500);
}

.account-login-link {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

/* ---- マイページ ---- */
.mypage-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.mypage-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mypage-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.mypage-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.mypage-user-name {
  font-size: .95rem;
  font-weight: 700;
}

.mypage-user-email {
  font-size: .78rem;
  color: var(--gray-500);
}

.mypage-section {
  margin-bottom: 32px;
}

.mypage-section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.mypage-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mypage-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ---- 注文履歴カード ---- */
.order-history-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.ohc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ohc-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ohc-id {
  font-size: .72rem;
  font-family: monospace;
  color: var(--gray-500);
}

.ohc-date {
  font-size: .85rem;
  font-weight: 600;
}

.ohc-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ohc-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.ohc-badge--delivery {
  background: var(--gray-100);
  color: var(--gray-700);
}

.ohc-badge--status.done {
  background: #e6f4ea;
  color: #2d7a3a;
}

.ohc-badge--status.pending {
  background: #fff8e1;
  color: #b07d00;
}

.ohc-pickup {
  font-size: .83rem;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.ohc-pickup-no {
  font-family: monospace;
  font-size: 1rem;
  background: var(--black);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: .1em;
}

.ohc-items {
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ohc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
}

.ohc-item-img {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.ohc-item-name {
  flex: 1;
  font-weight: 500;
}

.ohc-item-qty {
  color: var(--gray-500);
  font-size: .82rem;
  white-space: nowrap;
}

.ohc-item-price {
  font-weight: 700;
  white-space: nowrap;
}

.ohc-total {
  border-top: 1px solid var(--gray-100);
  padding-top: 10px;
  text-align: right;
  font-size: .9rem;
  color: var(--gray-700);
}

.ohc-total strong {
  font-size: 1.05rem;
  color: var(--black);
  margin-left: 8px;
}

/* ---- ログアウトリンク ---- */
.auth-logout-link {
  font-size: .8rem;
  color: var(--gray-500);
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .auth-card {
    padding: 28px 20px;
  }
  .mypage-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mypage-user-info {
    align-items: flex-start;
  }
  .ohc-header {
    flex-direction: column;
  }
  .header-user-area {
    gap: 6px;
  }
  .header-mypage-btn {
    padding: 6px 10px;
    font-size: .72rem;
  }
}
