/* =========================================================
   Register page — same as mockup (farm BG + glass card)
   ========================================================= */

body.auth-register-page,
body.auth-login-page {
    --reg-gold: #FFD700;
    --reg-gold-soft: #ffe9a8;
    --reg-black: #001a14;
    --reg-forest: #003B2E;
    --reg-display: 'Cinzel', Georgia, serif;
    --reg-ui: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
    background:
        radial-gradient(900px 480px at 50% -8%, rgba(255, 215, 0, 0.14), transparent 55%),
        linear-gradient(180deg, #001a14 0%, #003B2E 42%, #00120e 100%);
    color: #FFF7E6;
    min-height: 100dvh;
}

body.auth-register-page > .page-bg,
body.auth-register-page > .navbar,
body.auth-register-page > .site-footer,
body.auth-login-page > .page-bg,
body.auth-login-page > .navbar,
body.auth-login-page > .site-footer {
    display: none !important;
}

.reg-page {
    position: relative;
    isolation: isolate;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 28px 16px 28px;
    overflow-x: hidden;
}

.reg-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.reg-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.reg-bg-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(0, 59, 46, 0.28), rgba(0, 26, 20, 0.78) 75%),
        linear-gradient(180deg, rgba(0, 26, 20, 0.55) 0%, rgba(0, 59, 46, 0.35) 40%, rgba(0, 18, 14, 0.82) 100%);
}

/* Brand header */
.reg-brand {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(420px, 100%);
}

.reg-brand-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: contain;
    background: #000;
    padding: 3px;
    box-shadow:
        0 0 0 2px rgba(240, 180, 41, 0.55),
        0 0 28px rgba(240, 180, 41, 0.35),
        0 12px 28px rgba(0, 0, 0, 0.45);
}

.reg-brand-name {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.05;
}

.reg-brand-name span {
    font-family: var(--reg-display);
    font-size: clamp(1.55rem, 5.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    background: linear-gradient(115deg, #fff8e7, #ffe9a8 30%, #f0b429 60%, #d4a017);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.reg-brand-name small {
    font-family: var(--reg-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: rgba(255, 233, 168, 0.9);
}

.reg-brand-tag {
    margin: 2px 0 0;
    font-family: var(--reg-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

/* Glass card */
.reg-card {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    padding: 22px 18px 18px;
    border-radius: 24px;
    background: rgba(18, 16, 12, 0.62);
    border: 1px solid rgba(240, 180, 41, 0.35);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 233, 168, 0.08);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.reg-title {
    margin: 0 0 6px;
    font-family: var(--reg-ui);
    font-size: clamp(1.55rem, 5vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.reg-title span {
    color: #f0b429;
    position: relative;
}

.reg-title span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f0b429, transparent);
}

.reg-sub {
    margin: 0 0 18px;
    font-family: var(--reg-ui);
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.reg-ref {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #ffe9a8;
    background: rgba(240, 180, 41, 0.1);
    border: 1px solid rgba(240, 180, 41, 0.22);
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reg-field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--reg-ui);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 248, 231, 0.88);
}

.reg-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(240, 180, 41, 0.32);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-box:focus-within {
    border-color: rgba(240, 180, 41, 0.7);
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.14);
}

.reg-ico {
    width: 22px;
    height: 22px;
    color: #f0b429;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.reg-ico svg {
    width: 18px;
    height: 18px;
}

.reg-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: var(--reg-ui);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 12px 0;
}

.reg-box input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.reg-eye {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 233, 168, 0.75);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.reg-eye svg {
    width: 18px;
    height: 18px;
}

.reg-eye:hover {
    color: #f0b429;
}

.reg-page .auth-msg {
    min-height: 0;
    margin: 0;
    font-family: var(--reg-ui);
    font-size: 0.82rem;
    font-weight: 600;
}

.reg-page .auth-msg.show {
    padding: 10px 12px;
    border-radius: 12px;
}

.reg-page .auth-msg.show.error {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.reg-page .auth-msg.show.success {
    background: rgba(52, 211, 153, 0.12);
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.reg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.reg-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--reg-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    user-select: none;
}

.reg-check input {
    width: 16px;
    height: 16px;
    accent-color: #f0b429;
    cursor: pointer;
}

.reg-forgot {
    font-family: var(--reg-ui);
    font-size: 0.8rem;
    font-weight: 700;
    color: #f0b429;
    text-decoration: none;
    white-space: nowrap;
}

.reg-forgot:hover {
    text-decoration: underline;
}

/* 3D primary button (Login / Register) */
.reg-submit,
.reg-submit-3d {
    --depth: 5px;
    position: relative;
    margin-top: 6px;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px 0 18px;
    font-family: var(--reg-ui);
    font-size: 1rem;
    font-weight: 800;
    color: #1a1208;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(180deg, #fff6d6 0%, #f0b429 42%, #c9970d 100%);
    border: 1px solid rgba(255, 248, 231, 0.45);
    box-shadow:
        0 var(--depth) 0 #8a6508,
        0 14px 28px rgba(240, 180, 41, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 0 rgba(139, 90, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.reg-submit svg,
.reg-submit-3d svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.reg-submit-arrow {
    width: 32px;
    height: 32px;
    margin-left: auto;
    border-radius: 50%;
    background: #1a1208;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.reg-submit-arrow svg {
    width: 14px;
    height: 14px;
}

.reg-submit:hover,
.reg-submit-3d:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 7px 0 #8a6508,
        0 18px 34px rgba(240, 180, 41, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.reg-submit:active,
.reg-submit-3d:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #8a6508,
        0 8px 16px rgba(240, 180, 41, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.reg-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* 3D outline button (Create New Account) */
.reg-outline-3d {
    --depth: 4px;
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    font-family: var(--reg-ui);
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff8e7;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(42, 34, 20, 0.95), rgba(12, 10, 7, 0.98));
    border: 1.5px solid rgba(240, 180, 41, 0.55);
    box-shadow:
        0 var(--depth) 0 rgba(90, 65, 10, 0.85),
        0 12px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 233, 168, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.reg-outline-3d svg {
    width: 18px;
    height: 18px;
    color: #f0b429;
}

.reg-outline-3d:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(56, 44, 24, 0.98), rgba(18, 14, 8, 0.98));
    box-shadow:
        0 6px 0 rgba(90, 65, 10, 0.85),
        0 16px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 233, 168, 0.16);
}

.reg-outline-3d:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 rgba(90, 65, 10, 0.85),
        0 6px 14px rgba(0, 0, 0, 0.3);
}

.reg-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 10px;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--reg-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.reg-or::before,
.reg-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 180, 41, 0.35), transparent);
}

.reg-switch {
    margin: 0;
    text-align: center;
    font-family: var(--reg-ui);
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.78);
}

.reg-switch a {
    color: #f0b429;
    font-weight: 800;
    text-decoration: none;
}

.reg-switch a:hover {
    text-decoration: underline;
}

/* Bottom trust strip */
.reg-trust {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.reg-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 12px;
    border-radius: 14px;
    text-align: center;
    background: rgba(18, 16, 12, 0.55);
    border: 1px solid rgba(240, 180, 41, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.reg-trust-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
    box-shadow: 0 0 0 1.5px rgba(240, 180, 41, 0.5), 0 0 14px rgba(240, 180, 41, 0.25);
}

.reg-trust-item span {
    font-family: var(--reg-ui);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 420px) {
    .reg-page {
        padding: 18px 12px 22px;
        gap: 12px;
    }

    .reg-brand-logo {
        width: 72px;
        height: 72px;
    }

    .reg-trust-item span {
        font-size: 0.54rem;
    }
}
