/* 14 günlük deneme hesabı (docs/deneme-hesabi-yol-haritasi.md) — görünüm wmwebdemuhasebe giriş ekranının aynası.
   Tokenlar wmwebdemuhasebe src/styles.css :root / html.dark ile aynı adları ve değerleri taşır (--app-*), yerleşim
   src/app/pages/login/login.html'deki Tailwind sınıflarının düz CSS karşılığıdır. Kaynakta renk değişirse burada da eşlenmeli. */

:root {
    color-scheme: light;
    --app-navy: #00215e;
    --app-primary: #00215e;
    --app-primary-hover: #001a4d;
    --app-primary-active: #001440;
    --app-primary-soft: #e4e9f4;
    --app-accent: #fc4100;
    --app-accent-soft: #fff1ea;
    --app-bg: #e4e8f1;
    --app-surface: #f4f6fa;
    --app-surface-alt: #e9edf5;
    --app-border: #cfd5e3;
    --app-text-primary: #00215e;
    --app-text-body: #1f2a44;
    --app-text-muted: #5f6a86;
    --app-text-inverse: #ffffff;
    --app-success: #07b57a;
    --app-success-light: #ecfdf5;
    --app-success-text: #055f40;
    --app-error: #f53737;
    --app-error-light: #fef2f2;
    --app-error-text: #8a1313;
    --app-warning-light: #fefaed;
    --app-warning-text: #7a5800;
    --app-shadow-sm: 0 1px 2px rgb(0 33 94 / 0.07);
    --app-shadow-md: 0 4px 12px rgb(0 33 94 / 0.09);
    --app-shadow-focus: 0 0 0 2px color-mix(in srgb, var(--app-accent) 42%, transparent),
                        0 0 0 4px color-mix(in srgb, var(--app-accent) 14%, transparent);
    --font-sans: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
    --radius: 5px;
}

/* wmwebdemuhasebe tema.js gibi: html.dark (deneme.js işletim sistemi tercihine göre ekler) */
html.dark {
    color-scheme: dark;
    --app-primary: #8ea4cf;
    --app-primary-hover: #a3b6db;
    --app-primary-active: #7b93c2;
    --app-primary-soft: #1a2744;
    --app-accent-soft: #3a1c12;
    --app-bg: #0c1220;
    --app-surface: #141c2e;
    --app-surface-alt: #1a2438;
    --app-border: #2a3550;
    --app-text-primary: #f0f4fc;
    --app-text-body: #d2dbea;
    --app-text-muted: #8f9bb3;
    --app-text-inverse: #0c1220;
    --app-success: #1fd196;
    --app-success-light: #0f2e24;
    --app-success-text: #7ee0b8;
    --app-error: #ff6b6b;
    --app-error-light: #3a1a1a;
    --app-error-text: #f5a8a8;
    --app-warning-light: #3a2e0c;
    --app-warning-text: #f5d889;
    --app-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.35);
    --app-shadow-md: 0 4px 12px rgb(0 0 0 / 0.35);
    --app-shadow-focus: 0 0 0 2px color-mix(in srgb, var(--app-accent) 50%, transparent),
                        0 0 0 4px color-mix(in srgb, var(--app-accent) 18%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.4;
    color: var(--app-text-body);
    background: var(--app-bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" on, "cv11" on;
}
::selection { background: color-mix(in srgb, var(--app-accent) 22%, transparent); }
[hidden] { display: none !important; }

/* ── Yerleşim: lg'de iki sütun (sol lacivert tanıtım, sağ form) ── */
.ekran { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .ekran { grid-template-columns: 1fr 1fr; } }

.tanitim { display: none; background: var(--app-navy); color: #fff; }
@media (min-width: 1024px) { .tanitim { display: flex; } }
.tanitim-ic { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 28px 48px; }
@media (min-width: 1280px) { .tanitim-ic { padding: 32px 64px; } }
.tanitim-logo { display: flex; justify-content: center; }
.tanitim-logo img { height: 120px; width: auto; object-fit: contain; }
@media (min-width: 1280px) { .tanitim-logo img { height: 144px; } }
.tanitim-baslik { margin-top: 24px; max-width: 36rem; }
.tanitim h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.site-baglanti { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
    color: rgb(255 255 255 / 0.7); text-decoration: none; transition: color 120ms; }
.site-baglanti:hover { color: #fff; }
.ikon { width: 16px; height: 16px; flex: none; color: var(--app-accent); }
.tanitim-metin { margin: 16px 0 0; max-width: 32rem; font-size: 15px; line-height: 1.6; color: rgb(255 255 255 / 0.7); }

.tanitim-orta { margin-top: 24px; display: flex; flex: 1; min-height: 0; flex-direction: column;
    border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: 24px; }
.ozellikler { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; align-content: start;
    border-left: 2px solid var(--app-accent); padding-left: 16px; }
.ozellik { background: rgb(255 255 255 / 0.06); padding: 8px 12px; }
.ozellik b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.ozellik span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; color: rgb(255 255 255 / 0.85); }

.rozetler { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px;
    border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: 24px; font-size: 14px; letter-spacing: 0.02em; color: rgb(255 255 255 / 0.7); }
.rozetler span { display: inline-flex; align-items: center; gap: 8px; }

/* Giriş ekranındaki canlı gelir/gider grafiği — kaynak: wmwebdemuhasebe styles.css .login-sahne */
.sahne { flex: 1 1 auto; min-height: 140px; margin-top: 12px; padding-left: 18px; overflow: hidden; border-left: 2px solid var(--app-accent); }
.grafik { display: flex; height: 100%; min-height: 0; flex-direction: column; gap: 4px; }
.grafik-ust { display: flex; align-items: center; justify-content: space-between; color: rgb(255 255 255 / 0.62); font-size: 11px; }
.lejant { display: inline-flex; align-items: center; gap: 6px; }
.lejant i { width: 8px; height: 8px; background: var(--app-accent); }
.lejant i.gider { margin-left: 6px; background: rgb(255 255 255 / 0.7); }
.grafik-alan { position: relative; min-height: 0; flex: 1 1 auto;
    background-image: repeating-linear-gradient(to top, rgb(255 255 255 / 0.14) 0 1px, transparent 1px 25%); }
.grafik-cizgi { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.grafik-cizgi path { fill: url("#denemeGelirDolgu"); stroke: none; opacity: 0.85; animation: g-alan 3.6s ease-in-out infinite; }
.grafik-cizgi polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
    stroke-dasharray: 180 1220; stroke-dashoffset: 1400; animation: g-cizgi 3.6s linear infinite; }
.grafik-cizgi .gelir { stroke: var(--app-accent); stroke-width: 2.25; }
.grafik-cizgi .gider { stroke: rgb(255 255 255 / 0.72); stroke-width: 1.75; animation-duration: 4.8s; }
.tarama { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 22%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.34), transparent); animation: g-tarama 3.2s ease-in-out infinite; }
.cubuklar { display: flex; height: 100%; align-items: flex-end; gap: 10px; padding: 0 2px; }
.cubuklar span { display: flex; width: 100%; height: 100%; align-items: flex-end; justify-content: center; gap: 3px; }
.cubuklar span::before, .cubuklar span::after { content: ""; display: block; width: 42%; transform-origin: bottom;
    border-radius: 2px 2px 0 0; animation: g-cubuk 2.4s ease-in-out infinite alternate; }
.cubuklar span::before { height: var(--g); background: color-mix(in srgb, var(--app-accent) 88%, white); }
.cubuklar span::after { height: var(--d); background: rgb(255 255 255 / 0.55); animation-delay: 0.12s; }
.cubuklar span:nth-child(2n)::before { animation-delay: 0.18s; }
.cubuklar span:nth-child(3n)::before { animation-delay: 0.36s; }
.aylar { display: flex; flex: 0 0 14px; gap: 10px; }
.aylar span { width: 100%; color: rgb(255 255 255 / 0.52); font-size: 11px; line-height: 14px; text-align: center; }
@keyframes g-cubuk { from { transform: scaleY(0.38); } to { transform: scaleY(1); } }
@keyframes g-cizgi { to { stroke-dashoffset: 0; } }
@keyframes g-alan { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }
@keyframes g-tarama { from { transform: translateX(-120%); } to { transform: translateX(520%); } }

/* ── Sağ: form kartı ── */
.form-alani { position: relative; display: flex; min-height: 100vh; align-items: center; justify-content: center;
    background: var(--app-bg); padding: 40px 16px; }
@media (min-width: 640px) { .form-alani { padding: 40px 32px; } }
.firma-not { position: absolute; right: 20px; top: 20px; margin: 0; font-size: 11px; line-height: 1.6; letter-spacing: 0.02em; color: var(--app-text-muted); }
@media (min-width: 640px) { .firma-not { right: 32px; top: 28px; } }
.kap { width: 100%; max-width: 480px; }
.kart { border: 1px solid var(--app-border); border-radius: var(--radius); background: var(--app-surface); padding: 32px; box-shadow: var(--app-shadow-sm); }
@media (min-width: 640px) { .kart { padding: 40px; } }
@media (max-width: 420px) { .kart { padding: 24px 18px; } }

.kart-bas { margin-bottom: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.kart-bas img { margin-bottom: 20px; height: 64px; width: auto; object-fit: contain; }
@media (min-width: 640px) { .kart-bas img { height: 80px; } }
.kart-bas h2 { margin: 0; font-size: 16px; font-weight: 500; color: var(--app-text-primary); }
.kart-bas p { margin: 4px 0 0; font-size: 14px; color: var(--app-text-muted); }
.logo-koyu { display: none; }
html.dark .logo-acik { display: none; }
html.dark .logo-koyu { display: block; }

/* Adım göstergesi — giriş ekranındaki "Vergi No → Kullanıcı" çizgisinin üç adımlı hâli */
.adimlar { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
.adim-cizgi { pointer-events: none; position: absolute; left: 16.67%; right: 16.67%; top: 16px; height: 2px; background: var(--app-border); }
.adim-cizgi i { display: block; height: 100%; width: 0; background: var(--app-success); transition: width 300ms; }
.adim { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.adim-no { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9999px;
    font-size: 12px; font-weight: 700; background: var(--app-surface); color: var(--app-text-muted); box-shadow: inset 0 0 0 1px var(--app-border); }
.adim b { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--app-text-muted); }
.adim small { margin-top: 2px; font-size: 10px; color: var(--app-text-muted); }
.adim.aktif .adim-no { background: var(--app-primary); color: var(--app-text-inverse); box-shadow: var(--app-shadow-sm); }
.adim.aktif b { color: var(--app-text-primary); }
.adim.bitti .adim-no { background: var(--app-success); color: #fff; box-shadow: var(--app-shadow-sm); }
.adim.bitti b { color: var(--app-success-text); }
.adim-no svg { width: 16px; height: 16px; }

/* Form */
form { display: grid; gap: 20px; }
.adim-giris { animation: adim-gir 260ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes adim-gir { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.alan { display: flex; flex-direction: column; gap: 6px; }
.alan label { font-size: 14px; font-weight: 600; color: var(--app-text-primary); }
.alan input { height: 48px; width: 100%; min-width: 0; border-radius: var(--radius); border: 1px solid var(--app-border);
    background: var(--app-surface); padding: 0 12px; font: inherit; font-size: 14px; color: var(--app-text-body); outline: none;
    caret-color: var(--app-accent); transition: border-color 120ms, box-shadow 120ms; }
.alan input::placeholder { color: var(--app-text-muted); }
.alan input:focus { border-color: var(--app-primary); box-shadow: var(--app-shadow-focus); }
.alan.hatali input { border-color: var(--app-error); }
.ipucu { margin: 0; font-size: 12px; color: var(--app-text-muted); }
.alan.hatali .ipucu { color: var(--app-error-text); }
.iki { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .iki { grid-template-columns: 1fr; } }

.onay { display: flex; cursor: pointer; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--app-text-body); }
.onay input { margin: 2px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--app-navy); }
html.dark .onay input { accent-color: var(--app-primary); }
.onay a { color: var(--app-primary); font-weight: 500; }
.onaylar { display: grid; gap: 10px; }
.tuzak { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.dugme { display: flex; height: 48px; width: 100%; align-items: center; justify-content: center; gap: 12px; border: 0;
    border-radius: var(--radius); background: var(--app-primary); font: inherit; font-size: 16px; font-weight: 600;
    color: var(--app-text-inverse); box-shadow: var(--app-shadow-md); cursor: pointer; transition: background 120ms; }
.dugme:hover:not(:disabled) { background: var(--app-primary-hover); }
.dugme:active:not(:disabled) { background: var(--app-primary-active); }
.dugme:disabled { cursor: not-allowed; opacity: 0.6; }
.dugme:focus-visible { outline: none; box-shadow: var(--app-shadow-focus); }
.dugme-ok { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9999px; background: rgb(255 255 255 / 0.15); }
.dugme-ok svg { width: 16px; height: 16px; }

.mesaj { margin: 0; border-radius: var(--radius); padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.mesaj.hata { background: var(--app-error-light); color: var(--app-error-text); border: 1px solid color-mix(in srgb, var(--app-error) 30%, transparent); }
.mesaj.uyari { background: var(--app-warning-light); color: var(--app-warning-text); }

/* Sonuç / özet panelleri */
.sonuc { display: grid; gap: 16px; text-align: center; justify-items: center; }
.sonuc-ikon { display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 9999px;
    background: var(--app-success-light); color: var(--app-success); }
.sonuc-ikon svg { width: 28px; height: 28px; }
.sonuc h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--app-text-primary); }
.sonuc p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--app-text-muted); max-width: 34ch; }
.ozet { display: grid; gap: 2px; width: 100%; border: 1px solid var(--app-border); border-radius: var(--radius);
    background: var(--app-primary-soft); padding: 10px 12px; text-align: left; }
.ozet small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--app-text-muted); }
.ozet b { font-size: 14px; font-weight: 600; color: var(--app-text-primary); overflow-wrap: anywhere; }
.ozet span { font-family: var(--font-mono); font-size: 13px; color: var(--app-text-body); }
.alt-not { margin: 20px 0 0; text-align: center; font-size: 12px; color: var(--app-text-muted); }
.alt-not a { color: var(--app-primary); }

/* D2: müşteri bilgi formu */
.bolum { margin: 4px 0 -8px; padding-top: 14px; border-top: 1px solid var(--app-border); font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em; color: var(--app-text-primary); }
.bolum small { font-weight: 400; color: var(--app-text-muted); }
.satir { display: flex; gap: 8px; }
.satir input { flex: 1 1 auto; }
.dugme.ikincil { flex: none; width: auto; height: 48px; padding: 0 16px; font-size: 14px; font-weight: 500;
    background: var(--app-primary-soft); color: var(--app-text-primary); box-shadow: none; border: 1px solid var(--app-border); }
.dugme.ikincil:hover:not(:disabled) { background: var(--app-surface-alt); }
.alan select { height: 48px; width: 100%; border-radius: var(--radius); border: 1px solid var(--app-border); background: var(--app-surface);
    padding: 0 10px; font: inherit; font-size: 14px; color: var(--app-text-body); outline: none; }
.alan select:focus { border-color: var(--app-primary); box-shadow: var(--app-shadow-focus); }
.alan input:disabled { opacity: 0.7; }
.mesaj.basari-not { background: var(--app-success-light); color: var(--app-success-text); }
.ozet.kilitli { background: var(--app-surface-alt); }
.ozet.kilitli span { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--app-text-muted); }

/* KVKK metni */
.metin { font-size: 14px; line-height: 1.65; color: var(--app-text-body); }
.metin h1 { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--app-text-primary); }
.metin p { margin: 0 0 10px; }
.metin b { color: var(--app-text-primary); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .cubuklar span::before, .cubuklar span::after, .grafik-cizgi polyline, .grafik-cizgi path, .tarama, .adim-giris {
        animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
}

/* O5: iframe içinde (webdemuhasebe.com.tr) yükseklik içeriğe göre — 100vh = iframe yüksekliği olduğu için yükseklik bildirimi kendini büyütüyordu */
html.gomulu .ekran, html.gomulu .form-alani { min-height: 0; }
html.gomulu .ekran { grid-template-columns: 1fr; }
html.gomulu .tanitim { display: none; }
html.gomulu .form-alani { align-items: flex-start; }

/* Onay metni aynı sayfada (deneme.js metinGoster): formun yerinde, "Forma dön" düğmeleriyle */
.metin-gorunum { max-width: 720px; }
.metin-don { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; background: none;
    font: inherit; font-size: 13px; font-weight: 500; color: var(--app-primary); cursor: pointer; }
.metin-don:last-child { margin: 14px 0 0; }
.metin-don:hover { text-decoration: underline; }
.metin-don:focus-visible { outline: none; box-shadow: var(--app-shadow-focus); border-radius: 4px; }
