/* ==========================================================================
   ORIGIN ROHAN · small standalone pages
   affiliate-register.php, community.php, 404.php. Builds on origin.css.
   ========================================================================== */

/* ---------- Account creation ---------- */
.auth-main { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 84px) 0; }
.auth-main::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('img/hero-rohan.jpg') 58% 28% / cover no-repeat; opacity: .5; }
.auth-main::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 9, 8, .96) 0%, rgba(12, 9, 8, .8) 45%, rgba(12, 9, 8, .7) 100%), linear-gradient(0deg, var(--ink-900) 0%, transparent 40%); }
.auth-page .site-footer { margin-top: 0; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: clamp(32px, 6vw, 88px); }
.auth-copy { display: grid; gap: 20px; max-width: 540px; }
.auth-copy h1 { color: var(--text); font: 700 clamp(36px, 5.2vw, 64px)/1.06 var(--font-display); letter-spacing: .02em; }
.auth-copy h1 em { font-style: normal; color: var(--gold-300); background: linear-gradient(180deg, #f8ebc8 0%, #dcbb78 52%, #a67f3d 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-copy .ticks { margin-top: 6px; }
.auth-card { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 36px); background: linear-gradient(180deg, rgba(27, 20, 16, .92), rgba(14, 10, 8, .95)); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.auth-card-head { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.auth-card-head h2 { color: var(--text); font: 600 24px/1.2 var(--font-display); letter-spacing: .04em; }
.auth-card-head p { color: var(--text-mute); font-size: 15px; }
.auth-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 4px; color: var(--text-mute); font-size: 14px; }
.auth-card-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.error-main { display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 260px); padding: clamp(56px, 9vw, 120px) 0; background: radial-gradient(ellipse at 50% 20%, rgba(127, 26, 42, .28), transparent 60%); }
.error-page .site-footer { margin-top: 0; }
.error-inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.error-code { color: var(--gold-300); font: 800 clamp(96px, 20vw, 200px)/.9 var(--font-display); letter-spacing: .04em; background: linear-gradient(180deg, #f8ebc8 0%, #dcbb78 45%, #7a5a26 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .6)); }
.error-inner .kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .75; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }

/* ---------- Community hub ---------- */
.hub-main { padding-bottom: clamp(48px, 7vw, 96px); }
.hub-counts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: -34px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.hub-counts:empty { display: none; }
.hub-counts > div { display: grid; gap: 6px; padding: 22px 26px; border-left: 1px solid var(--line); }
.hub-counts > div:first-child { border-left: 0; }
.hub-counts dd { color: var(--gold-300); font: 700 36px/1 var(--font-display); letter-spacing: .03em; background: linear-gradient(180deg, #f8ebc8 0%, #dcbb78 55%, #a67f3d 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hub-counts dt { color: var(--text-mute); font: 600 12px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: clamp(24px, 3.5vw, 48px); margin-top: clamp(40px, 5.5vw, 64px); }
.hub-grid .section-head { margin-bottom: 20px; }
.discord-frame { overflow: hidden; min-height: 460px; background: #1e1f22; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.discord-frame iframe { display: block; }
.hub-discord .form-note { margin-top: 14px; }
.hub-board-list { display: grid; gap: 12px; }
.hub-board { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: var(--gold-300); transition: border-color .16s ease, transform .16s ease; }
.hub-board:hover { border-color: var(--gold-500); transform: translateX(3px); }
.hub-board > span:not(.hub-board-icon) { display: grid; gap: 2px; margin-right: auto; }
.hub-board-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; background: radial-gradient(circle at 30% 25%, rgba(196, 155, 82, .3), rgba(127, 26, 42, .28)); border: 1px solid var(--line-strong); border-radius: 50%; }
.hub-board strong { color: var(--text); font: 600 17px/1.3 var(--font-display); letter-spacing: .05em; }
.hub-board small { color: var(--text-mute); font-size: 13.5px; line-height: 1.4; }
.hub-rules { margin-top: 20px; }
.hub-rules .card-head { margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .auth-grid, .hub-grid { grid-template-columns: 1fr; }
    .auth-card { width: min(100%, 560px); }
}
@media (max-width: 680px) {
    .hub-counts { grid-template-columns: 1fr; margin-top: -24px; }
    .hub-counts > div { border-top: 1px solid var(--line); border-left: 0; padding: 18px 20px; }
    .hub-counts > div:first-child { border-top: 0; }
    .error-actions .btn { flex: 1 1 100%; }
}
