:root {
    color-scheme: dark;
    --bg: #101417;
    --surface: rgba(255, 255, 255, 0.065);
    --surface-strong: rgba(255, 255, 255, 0.105);
    --border: rgba(255, 255, 255, 0.11);
    --text: #f5f7f8;
    --muted: #aab3b9;
    --brand: #ffb229;
    --brand-strong: #ff9d00;
    --success: #2bc866;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    font-family: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 75% 0%, rgba(255, 178, 41, 0.14), transparent 33rem),
        radial-gradient(circle at 0% 75%, rgba(48, 118, 168, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.08rem;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(255, 178, 41, 0.16);
}

.muted { color: var(--muted); }

.hero {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: clamp(34px, 6vw, 88px);
    padding: 50px 0 90px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.7rem);
    line-height: 1.08;
    margin: 0 0 24px;
    letter-spacing: -0.045em;
}

.hero h1 span { color: var(--brand); }
.hero p {
    max-width: 680px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 2;
    color: var(--muted);
    margin: 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 750;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-strong); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #19120a;
    border-color: transparent;
}

.preview, .card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.preview {
    max-width: 410px;
    width: 100%;
    justify-self: center;
    border-radius: 34px;
    padding: 18px;
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px 20px;
}

.pill {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .78rem;
    color: var(--muted);
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
    border-radius: 20px;
    padding: 18px;
    min-height: 106px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.07);
}
.stat strong { display: block; margin-top: 16px; font-size: 1.2rem; }
.stat.income strong { color: #61de8b; }
.stat.expense strong { color: #ff8b93; }

.page-center {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.card {
    width: min(560px, calc(100% - 30px));
    border-radius: 30px;
    padding: clamp(24px, 6vw, 42px);
}

.card-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 24px;
}

.card h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.card p { margin: 0; line-height: 1.9; color: var(--muted); }

.steps { display: grid; gap: 12px; margin: 28px 0 0; }
.step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    padding: 16px;
    border-radius: 18px;
}
.step b {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,178,41,.14);
    color: var(--brand);
}
.step span { line-height: 1.9; }

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    align-items: center;
    gap: 50px;
    padding: 36px 0;
}

.login-form { margin-top: 32px; }
.label { display: block; margin-bottom: 10px; font-weight: 700; }
.input {
    width: 100%;
    min-height: 58px;
    border-radius: 17px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.18);
    color: var(--text);
    padding: 0 18px;
    outline: none;
    direction: ltr;
    text-align: left;
}
.input:focus { border-color: rgba(255,178,41,.65); box-shadow: 0 0 0 4px rgba(255,178,41,.09); }
.login-button { width: 100%; margin-top: 12px; cursor: default; }
.notice { margin-top: 12px !important; font-size: .83rem; }

@media (max-width: 820px) {
    .hero, .login-wrap { grid-template-columns: 1fr; }
    .hero { padding-top: 28px; }
    .preview { order: -1; max-width: 360px; }
    .login-wrap { max-width: 560px; margin: 0 auto; }
    .login-copy { display: none; }
}
