/* CIGAR NEXUS ? Temporary member login */

:root {
  --color-bg: #f7f1e8;
  --color-bg-panel: rgba(255, 252, 247, 0.72);
  --color-text: #2d1b14;
  --color-muted: #8c6d45;
  --color-line: #c4a574;
  --color-error: #8a2e2e;
  --color-btn: #2d1b14;
  --color-btn-text: #f7f1e8;
  --font-serif: "Cormorant Garamond", "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --max-width: 420px;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Cormorant Garamond Medium"), local("Times New Roman");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--color-text);
  font-family: var(--font-serif);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, #faf6f0 0%, #f3ebe0 100%);
  background-repeat: no-repeat;
  background-size: 100% 100vh, 100% 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.panel {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
}

.brand {
  margin-bottom: 36px;
}

.brand-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: 360px;
  max-height: 180px;
  height: auto;
  margin: 0 auto;
}

.brand-fallback {
  padding: 12px 0 4px;
}

.brand-title {
  margin: 0;
  color: var(--color-text);
  font-size: 2.4rem;
  font-size: clamp(1.8rem, 5.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-indent: 0.28em;
}

.brand-sub {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.brand-sub span {
  opacity: 0.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.heading {
  margin: 0 0 28px;
  font-size: 1.6rem;
  font-size: clamp(1.35rem, 3.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.lead {
  margin: 0 0 32px;
  color: var(--color-text);
  font-size: 1rem;
  font-size: clamp(0.92rem, 2vw, 1rem);
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.message {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.message-error {
  color: var(--color-error);
  border-color: rgba(138, 46, 46, 0.35);
}

.form {
  display: grid;
  gap: 18px;
  text-align: left;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 0;
  background: rgba(255, 252, 247, 0.9);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--color-text);
  box-shadow: 0 0 0 1px rgba(45, 27, 20, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 15px 20px;
  border: 1px solid var(--color-btn);
  background: var(--color-btn);
  color: var(--color-btn-text);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #3d261c;
}

.btn-ghost {
  width: auto;
  min-width: 180px;
  margin: 0 auto;
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--color-text);
  color: var(--color-btn-text);
}

.form-logout {
  justify-items: center;
}

.site-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(196, 165, 116, 0.45);
}

.site-foot p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.site-foot p + p {
  margin-top: 10px;
}

.foot-link {
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--color-text);
}

/* Document page (privacy policy etc.) */
.page-doc {
  align-items: flex-start;
}

.panel-doc {
  max-width: 820px;
  text-align: left;
}

.panel-doc .brand {
  text-align: center;
}

.panel-doc .eyebrow,
.panel-doc .heading {
  text-align: center;
}

.doc-body {
  margin-top: 8px;
}

.doc-body h2 {
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(196, 165, 116, 0.45);
  color: var(--color-muted);
  font-size: 1.25rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.doc-body p,
.doc-body li {
  margin: 0 0 14px;
  font-size: 1rem;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  letter-spacing: 0.04em;
  line-height: 1.95;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body ol.doc-list {
  list-style: decimal;
}

.doc-body a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.doc-body a:hover,
.doc-body a:focus-visible {
  color: var(--color-text);
}

.doc-meta {
  margin-top: 32px !important;
  color: var(--color-muted);
  font-size: 0.88rem !important;
  font-size: clamp(0.8rem, 1vw, 0.88rem) !important;
}

.doc-back {
  margin: 40px 0 0;
  text-align: center;
}

.doc-back a {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.doc-back a:hover,
.doc-back a:focus-visible {
  color: var(--color-text);
}

@media screen and (max-width: 750px) {
  .page {
    padding: 32px 16px;
  }

  .brand {
    margin-bottom: 28px;
  }

  .brand-logo img {
    max-width: 260px;
    max-height: 260px;
  }

  .heading {
    margin-bottom: 22px;
  }

  .doc-body h2 {
    margin-top: 28px;
    letter-spacing: 0.08em;
  }

  .doc-body ul,
  .doc-body ol {
    padding-left: 1.2em;
  }

  .doc-back {
    margin-top: 32px;
  }
}
