@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/vazirmatn-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/vazirmatn-800.woff2') format('woff2');
    font-weight: 700 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --warm: #f5f7f2;
    --muted: #9fb0aa;
    --emerald: #27c08a;
    --gold: #c9a14a;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--warm);
    font: 400 14px/1.8 Vazirmatn, Tahoma, sans-serif;
    background:
        radial-gradient(circle at top right, #27c08a29, transparent 28%),
        radial-gradient(circle at bottom left, #c9a14a1a, transparent 22%),
        linear-gradient(135deg, #08110f, #0a1714 45%, #08110f);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a, button { transition: color .2s, background .2s, filter .2s; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; }
h1, h2, p { margin: 0; }
.container { width: min(1280px, 100%); margin-inline: auto; padding-inline: 32px; }
.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(#000b, transparent);
    mask-image: linear-gradient(#000b, transparent);
}
.mesh-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .28;
    pointer-events: none;
    animation: floaty 8s ease-in-out infinite;
}
.orb-green { width: 288px; height: 288px; background: var(--emerald); top: 40px; right: 40px; }
.orb-gold { width: 320px; height: 320px; background: var(--gold); bottom: 40px; left: 40px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translate(8px, -18px) scale(1.04); } }
@keyframes pulse { 50% { opacity: .35; } }
.landing-header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-block: 20px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark, .welcome-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--emerald), #0f2a24);
    color: #08110f;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 0 40px #27c08a2e;
}
.brand-copy { display: grid; }
.brand-copy strong { font-size: 18px; font-weight: 800; }
.brand-copy small { font-size: 12px; color: var(--muted); }
.header-caption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.header-divider { opacity: .3; }
.market-status { display: inline-flex; align-items: center; gap: 8px; }
.market-status i, .hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; }
.market-status i { animation: pulse 2s ease-in-out infinite; }
.market-status.is-closed i { background: var(--gold); animation: none; }
.landing-main { position: relative; z-index: 1; min-height: calc(100svh - 94px); display: flex; align-items: center; padding-block: 45px 65px; }
.landing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; width: 100%; }
.glass { background: #ffffff0d; border: 1px solid #ffffff14; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 40px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.headline {
    font-size: clamp(36px, 4.2vw, 60px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -1.5px;
    color: #d8f7ea;
    background: linear-gradient(90deg, var(--warm), #d8f7ea 45%, var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description { margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 2.2; }
.hero-description strong { color: var(--warm); }
.hero-description .gold-text { color: var(--gold); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.feature { padding: 16px; border-radius: 16px; text-align: right; box-shadow: 0 20px 60px #00000030; }
.feature h2 { color: var(--emerald); font-size: 14px; font-weight: 700; }
.feature p { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 2; }
.entry-card { position: relative; width: 100%; max-width: 448px; margin-inline: auto; padding: 30px 32px; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 60px #00000059; }
.entry-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, #ffffff4d, transparent); }
.entry-heading { text-align: center; margin-bottom: 24px; }
.entry-heading h2 { font-size: 24px; font-weight: 800; }
.entry-heading p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.login-form { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field label { color: #f5f7f2e6; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-heading a, .form-field small a { color: var(--emerald); font-size: 12px; }
.form-field a:hover { color: var(--warm); }
.form-field input {
    min-width: 0;
    width: 100%;
    border: 1px solid #ffffff1a;
    border-radius: 16px;
    padding: 13px 16px;
    background: #ffffff0d;
    color: var(--warm);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-field input::placeholder { color: var(--muted); opacity: .8; }
.form-field input:focus { border-color: #27c08a80; box-shadow: 0 0 0 3px #27c08a29; }
.form-field input[aria-invalid='true'] { border-color: #f87171; }
.password-field { position: relative; }
.password-field input { padding-left: 50px; }
.password-toggle { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.password-toggle:hover { background: #27c08a1a; color: var(--emerald); }
.password-toggle svg { width: 21px; height: 21px; }
.eye-slash[hidden] { display: none; }
.captcha-question { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.form-field small { font-size: 11px; color: var(--muted); }
.form-field small a { font-size: inherit; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.remember { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--emerald); }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-radius: 16px; background: linear-gradient(90deg, var(--emerald), #1fa774); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 0 40px #27c08a2e; }
.primary-button:hover { filter: brightness(1.1); }
.primary-button span { font-size: 20px; }
.register-link { margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff1a; text-align: center; font-size: 13px; color: var(--muted); }
.register-link a { color: var(--gold); font-weight: 700; }
.register-link a:hover, .staff-link:hover { color: var(--warm); }
.staff-link { display: block; text-align: center; margin-top: 12px; font-size: 11px; color: var(--muted); }
.notice { margin-bottom: 16px; border-radius: 12px; padding: 12px 16px; font-size: 13px; border: 1px solid; }
.success { color: #69deb4; border-color: #27c08a4d; background: #27c08a1a; }
.error-notice { color: #fecaca; border-color: #f871714d; background: #f871711a; }
.notice ul { padding-inline-start: 18px; margin: 6px 0 0; }
.welcome-mark { width: 64px; height: 64px; margin: 0 auto 20px; font-size: 30px; }
.logout-form { text-align: center; margin-top: 20px; }
.text-button { border: 0; background: transparent; color: var(--muted); }
.text-button:hover { color: var(--warm); }

@media (max-width: 1023px) {
    .landing-main { padding-block: 30px 56px; }
    .landing-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .entry-section { order: 1; }
    .hero-content { order: 2; text-align: center; }
    .headline { font-size: 48px; }
    .hero-description, .features { max-width: 650px; margin-inline: auto; }
}

@media (max-width: 639px) {
    .container { padding-inline: 20px; }
    .header-caption { display: none; }
    .landing-main { padding-top: 16px; }
    .entry-card { padding: 25px 22px; border-radius: 26px; }
    .entry-heading h2 { font-size: 22px; }
    .entry-heading p { font-size: 12px; }
    .headline { font-size: 36px; letter-spacing: -.7px; }
    .hero-description { font-size: 14px; }
    .hero-badge { font-size: 11px; }
    .features { grid-template-columns: 1fr; }
    .feature { padding: 16px 20px; }
    .mesh-orb { max-width: 65vw; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
