﻿/* ==========================================================================
   AudixCore - Yeni giris ekrani (Views/User/LoginNew.cshtml)
   "Denetim Yuzeyi Taramasi"

   Tokenlar bilerek .ax-login kapsayicisi altinda tanimlidir; bu dosya sadece
   giris ekraninda yuklenir ve global stilleri (main.css / app.min.css) hicbir
   sekilde ezmez. Renkler login-logo.png'den ornekle alinan kurumsal degerlerdir:
   mavi #1582c7, yesil #79b551 (main.css ile ayni).
   ========================================================================== */

.ax-login {
    /* Kurumsal */
    --ax-blue: #1582c7;
    --ax-blue-deep: #0f5f92;
    --ax-blue-lift: #4fb0e8;
    --ax-green: #79b551;
    --ax-amber: #f1b44c;

    /* Marka paneli zemini - kurumsal maviden turetildi */
    --ax-navy: #06263f;
    --ax-navy-2: #0a3555;
    --ax-navy-3: #0d4165;

    /* Koyu zeminde metin */
    --ax-on-navy: #e6f1f8;
    --ax-on-navy-dim: #93b4cc;

    /* Form tarafi */
    --ax-paper: #f4f8fb;
    --ax-card: #ffffff;
    --ax-ink: #0d2233;
    --ax-ink-dim: #5c7488;
    --ax-line: #d9e5ee;

    --ax-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ax-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ax-radius: 12px;
    --ax-ease: cubic-bezier(.22, .61, .36, 1);

    /* Marka panelinin zemini ve olcum izgarasi token olarak duruyor: mercegin
       cami icindeki sahne AYNI degerleri kullanir. Ikisi ayrilirsa cam altindaki
       goruntu zeminden kayar ve buyutec sahte gorunur. */
    --ax-hero-bg:
        radial-gradient(120% 90% at 15% 0%, var(--ax-navy-3) 0%, rgba(13, 65, 101, 0) 55%),
        radial-gradient(90% 70% at 85% 100%, rgba(21, 130, 199, .22) 0%, rgba(21, 130, 199, 0) 60%),
        radial-gradient(70% 42% at 50% 106%, rgba(121, 181, 81, .16) 0%, rgba(121, 181, 81, 0) 70%),
        linear-gradient(160deg, var(--ax-navy-2) 0%, var(--ax-navy) 60%, #041a2c 100%);

    --ax-hero-grid:
        linear-gradient(rgba(79, 176, 232, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 176, 232, .07) 1px, transparent 1px);
    --ax-hero-grid-size: 46px 46px;
    --ax-hero-grid-mask: radial-gradient(105% 95% at 32% 40%, #000 0%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Iskelet
   -------------------------------------------------------------------------- */

body.ax-body {
    margin: 0;
    background: var(--ax-paper);
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #0d2233;
    -webkit-font-smoothing: antialiased;
}

.ax-login {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--ax-sans);
    transition: grid-template-columns .85s var(--ax-ease);
}

.ax-side {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   SOL - marka paneli
   -------------------------------------------------------------------------- */

/* Icerik ustte toplanir: sag alt serit merceğin gezindigi ve catlagin ortaya
   ciktigi acik yuzeye birakilir. Kusur panellerin altinda kalirsa hikaye
   gorunmez olur. */
.ax-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding: 3rem 3rem 2rem;
    color: var(--ax-on-navy);
    background: var(--ax-hero-bg);
    isolation: isolate;
}

/* Olcum izgarasi - kenarlara dogru soner */
.ax-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--ax-hero-grid);
    background-size: var(--ax-hero-grid-size);
    -webkit-mask-image: var(--ax-hero-grid-mask);
    mask-image: var(--ax-hero-grid-mask);
    pointer-events: none;
    z-index: 0;
}

/* Cok yavas ambiyans salinimi - acilis bittikten sonra kalan tek atmosfer */
.ax-hero::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(38% 32% at 22% 28%, rgba(79, 176, 232, .16) 0%, transparent 70%);
    animation: ax-drift 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ax-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .55; }
    50%      { transform: translate3d(4%, 3%, 0) scale(1.08); opacity: .85; }
}

/* --- Yuzeydeki catlak -----------------------------------------------------
   Anlatinin cekirdegi. Baslangicta hicbir sey yoktur: zemin temiz gorunur.
   Mercek tarama sirasinda bu noktaya gelince catlak cam altinda cizilerek
   ortaya cikar (.is-revealed), sonra bulgu olarak isaretlenir (.is-found).
   Markup Razor'da (viewBox 240x200, kirilma merkezi 120,100) ve merceğin ic
   sahnesine AYNI sinifla klonlanir - konum kurallari tek yerde kaldigi icin
   buyutec ile zemin hizali kalir.                                           */

/* Konum: sag kenar seridi her genislikte acik kalir. Dikeyde YUZDE ve USTTEN
   olculur - marka paneli icerikten dolayi pencereden uzun olabilir, alttan
   olculursaydi kusur kisa ekranlarda katlamanin altina duserdi. */
.ax-crack {
    position: absolute;
    right: 5.5%;
    top: 40%;
    width: clamp(170px, 18vw, 270px);
    aspect-ratio: 6 / 5;
    height: auto;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

/* Bulgu kayda gecince catlak sahneden cekilir: bulgu artik listede yasiyor,
   zeminde kalmasina gerek yok. login-new.js recordFinding() bu sinifi ekler. */
.ax-login.is-settled .ax-crack {
    opacity: 0;
    transition: opacity .5s var(--ax-ease);
}

.ax-crack path {
    fill: none;
    stroke: rgba(214, 238, 252, .22);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Ortaya cikana kadar cizgi yok: pathLength=100, tamami bosluk. */
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke .5s var(--ax-ease);
}

/* Kilcal catlaklar ana hattan daha sonuk: desen tek kalinlikta olursa cizim
   gibi okunuyor, kademeli olunca yuzey gibi. */
.ax-crack__hair {
    stroke: rgba(214, 238, 252, .13);
    stroke-width: 1;
}

/* Catlagi yuzeyin ustune cizilmis bir cizgi degil, yuzeyde acilmis bir yarik
   yapan sey: hemen altindaki koyu golge. */
.ax-crack__lines {
    filter: drop-shadow(0 1px 0 rgba(2, 12, 22, .55));
}

/* Ortaya cikis: kirilma merkezden disariya dogru yayilir (--i sirasi). */
.ax-crack.is-revealed .ax-crack__lines path {
    animation: ax-crack-open .5s var(--ax-ease) forwards;
    animation-delay: calc(var(--i, 0) * .07s);
}

@keyframes ax-crack-open {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}

.ax-crack.is-found path { stroke: rgba(241, 180, 76, .4); }
.ax-crack.is-found .ax-crack__hair { stroke: rgba(241, 180, 76, .24); }

/* Isaretleme: kirilma hatti bastan sona kehribarla cizilir. */
.ax-crack__trace {
    stroke: var(--ax-amber);
    stroke-width: 2;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(241, 180, 76, .45));
}

.ax-crack.is-found .ax-crack__trace {
    opacity: .9;
    animation: ax-crack-open .8s var(--ax-ease) forwards;
}

.ax-crack__mark {
    fill: none;
    stroke: rgba(241, 180, 76, .75);
    stroke-width: 1.2;
    stroke-dasharray: 5 7;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.ax-crack.is-found .ax-crack__mark {
    opacity: 1;
    animation: ax-mark-in .5s var(--ax-ease) backwards, ax-spin 14s linear infinite;
}

@keyframes ax-mark-in {
    from { opacity: 0; transform: scale(1.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Tarama isigi - acilista panelin tamami boyunca bir kez suzulur, bolunmeden
   sonra 10 saniyede bir tekrarlar (bkz. ax-sweep-loop). */
.ax-hero__sweep {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 190px;
    top: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(79, 176, 232, .10) 38%,
        rgba(214, 238, 252, .55) 50%,
        rgba(79, 176, 232, .10) 62%,
        transparent 100%);
    filter: blur(.5px);
    opacity: 0;
    animation: ax-sweep 1.35s cubic-bezier(.5, 0, .25, 1) .08s 1 forwards;
}

@keyframes ax-sweep {
    0%   { transform: translate3d(0, -190px, 0); opacity: 0; }
    12%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate3d(0, 100vh, 0); opacity: 0; }
}

/* Bulgu kayda gectikten sonra tarama 10 saniyede bir tekrarlar: panel canli
   bir izleme yuzeyi gibi okunmali ama surekli hareket dikkat dagitmamali.
   Gecisin KENDISI acilistakiyle ayni hizda (~1.4sn); dongunun geri kalani
   beklemedir - bu yuzden sure 10sn ve yol %14'te tamamlanir. Yalnizca
   transform + opacity degisir, is compositor'da kalir. Acilistaki gecisten
   daha sonuk: kullanici artik forma bakiyor. Hareket azaltmada bu katman
   zaten display:none. */
.ax-login.is-settled .ax-hero__sweep {
    animation: ax-sweep-loop 10s linear infinite;
}

@keyframes ax-sweep-loop {
    0%   { transform: translate3d(0, -190px, 0); opacity: 0; }
    2%   { opacity: .7; }
    11%  { opacity: .7; }
    14%  { transform: translate3d(0, 100vh, 0); opacity: 0; }
    100% { transform: translate3d(0, 100vh, 0); opacity: 0; }
}

.ax-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

/* --- Denetci mercegi ------------------------------------------------------
   Camin icinde zeminin birebir kopyasi (.ax-lens__scene) durur; login-surface.js
   onu her karede olceklendirip merceğin altindaki noktayi cam merkezine getirir.
   Boylece buyutec gercekten arkasindaki zemini buyutur. z-index 1: mercek
   gosterge panellerinin ARKASINDA gezinir, catlak da panellerin altinda
   kalmayan acik yuzey seridinde ortaya cikar.                               */

.ax-lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 108px;
    height: 108px;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.ax-lens__glass {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ax-navy);
    transition: border-color .35s var(--ax-ease), box-shadow .35s var(--ax-ease);
    border: 1.5px solid rgba(214, 238, 252, .5);
    box-shadow:
        0 0 0 4px rgba(6, 30, 50, .55),
        0 0 0 5.5px rgba(79, 176, 232, .32),
        0 12px 28px rgba(0, 0, 0, .38),
        inset 0 0 26px rgba(79, 176, 232, .16);
}

/* Buyutulen zemin. Olculeri ve konumu JS tarafindan surulur (hero ile ayni
   kutu), zemin degerleri hero ile ayni tokenlardan gelir. */
.ax-lens__scene {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    background: var(--ax-hero-bg);
    /* Cam altinda toplanan isik: buyutec sadece buyutmez, biraz da aydinlatir. */
    filter: saturate(1.06) brightness(1.12);
    will-change: transform;
}

.ax-lens__scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--ax-hero-grid);
    background-size: var(--ax-hero-grid-size);
    -webkit-mask-image: var(--ax-hero-grid-mask);
    mask-image: var(--ax-hero-grid-mask);
}

/* Cam yansimasi - merceği duz bir daireden ayiran sey */
.ax-lens__glare {
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background: linear-gradient(138deg,
        rgba(255, 255, 255, .20) 0%,
        rgba(255, 255, 255, .05) 32%,
        transparent 52%);
}

.ax-lens__handle {
    position: absolute;
    right: 4px;
    bottom: -22px;
    width: 7px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(180, 212, 234, .55), rgba(21, 130, 199, .28));
    transform: rotate(-38deg);
    transform-origin: top center;
}

.ax-lens__flash {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #eaf6ff;
    opacity: 0;
}

/* Kusurun uzerinde: kasnak kehribara doner - "burada bir sey var". */
.ax-lens.is-onfinding .ax-lens__glass {
    border-color: rgba(241, 180, 76, .8);
    box-shadow:
        0 0 0 4px rgba(6, 30, 50, .55),
        0 0 0 5.5px rgba(241, 180, 76, .35),
        0 12px 28px rgba(0, 0, 0, .38),
        inset 0 0 26px rgba(241, 180, 76, .18);
}

.ax-lens.is-flashing .ax-lens__flash {
    animation: ax-shutter .22s ease-out;
}

@keyframes ax-shutter {
    0%   { opacity: 0; }
    16%  { opacity: .88; }
    100% { opacity: 0; }
}

/* --- Wordmark -------------------------------------------------------------
   Koyu zeminde login-logo.png okunmuyor (mavi metin / lacivert zemin), bu
   yuzden marka panelinde wordmark tipografik olarak kuruluyor. Logonun kendi
   kurgusu korunuyor: "d" harfinin arkasindaki kurumsal yesil blok.
   Gercek PNG logo form tarafinda, beyaz zeminde kullaniliyor.               */

.ax-wordmark {
    display: flex;
    align-items: baseline;
    gap: .85rem;
    margin: 0 0 1.15rem;
    opacity: 0;
    transform: translateY(10px);
    animation: ax-rise .6s var(--ax-ease) .22s forwards;
}

.ax-wordmark__name {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    color: #fff;
}

.ax-wordmark__d {
    position: relative;
    display: inline-block;
    padding: 0 .1em;
    color: #fff;
}

.ax-wordmark__d::before {
    content: "";
    position: absolute;
    inset: -.12em -0em -.06em;
    background: var(--ax-green);
    border-radius: 3px;
    z-index: -1;
}

.ax-wordmark__tag {
    font-family: var(--ax-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ax-blue-lift);
    white-space: nowrap;
}

.ax-hero__headline {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.015em;
    margin: 0 0 .75rem;
    max-width: 22ch;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    animation: ax-rise .6s var(--ax-ease) .30s forwards;
}

.ax-hero__subline {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ax-on-navy-dim);
    max-width: 46ch;
    margin: 0 0 1.35rem;
    opacity: 0;
    transform: translateY(10px);
    animation: ax-rise .6s var(--ax-ease) .38s forwards;
}

/* --- Gosterge kumesi ------------------------------------------------------ */

/* Zemin taramasinin arkadan gecmesi derinlik versin diye yari saydam, ama metin
   her zaman okunur kalsin diye bulaniklastirilmis. */
.ax-panel {
    border: 1px solid rgba(79, 176, 232, .16);
    border-radius: var(--ax-radius);
    background: rgba(4, 24, 41, .76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: .85rem 1.05rem;
    margin-bottom: .7rem;
}

.ax-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .6rem;
}

.ax-eyebrow {
    font-family: var(--ax-mono);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ax-on-navy-dim);
}

.ax-eyebrow--accent { color: var(--ax-blue-lift); }

/* Checklist */

.ax-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ax-check {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .32rem 0;
    font-size: .855rem;
    color: var(--ax-on-navy);
    opacity: 0;
    transform: translateX(-8px);
    /* --i: satir sirasi. Tarama isigi o yukseklige geldiginde satir oturur. */
    animation: ax-check-in .45s var(--ax-ease) calc(.45s + var(--i) * .13s) forwards;
}

.ax-check + .ax-check {
    border-top: 1px solid rgba(79, 176, 232, .09);
}

.ax-check__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: block;
}

/* Yol uzunlugu SVG'de pathLength="100" ile normalize edildi; boylece dasharray
   degerleri gercek geometriden bagimsiz ve tam. */
.ax-check__mark {
    fill: none;
    stroke: var(--ax-green);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ax-draw .4s var(--ax-ease) calc(.60s + var(--i) * .13s) forwards;
}

.ax-check__ring {
    fill: none;
    stroke: rgba(121, 181, 81, .28);
    stroke-width: 1.4;
}

.ax-check__label {
    flex: 1 1 auto;
    min-width: 0;
}

.ax-check__state {
    font-family: var(--ax-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ax-green);
    white-space: nowrap;
}

/* Devam eden satir: acilis bittikten sonra kalan tek dongusel hareket */
.ax-check--running .ax-check__label { color: var(--ax-on-navy-dim); }
.ax-check--running .ax-check__state { color: var(--ax-blue-lift); }

.ax-check__spin {
    transform-origin: 10px 10px;
    fill: none;
    stroke: var(--ax-blue-lift);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 14 34;
    animation: ax-spin 1.5s linear infinite;
}

/* --- Tespit edilen uygunsuzluk -------------------------------------------
   Satir markup'ta hazir durur ve gizlidir; login-new.js deklansor aninda
   .is-found ekler. Boylece butun metin Razor'da, resx anahtarlariyla kalir. */

.ax-check--nc {
    display: none;
    align-items: start;
    grid-template-columns: 20px minmax(0, 1fr) auto auto;
    gap: .7rem;
    padding: .6rem 0 .1rem;
    animation: none;
}

.ax-check--nc.is-found {
    display: grid;
    opacity: 0;
    transform: none;
    animation: ax-nc-in .55s var(--ax-ease) forwards;
}

@keyframes ax-nc-in {
    0%   { opacity: 0; transform: translateY(-6px) scale(.97); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: none; }
}

.ax-check--nc .ax-check__icon {
    margin-top: 1px;
}

.ax-check__warn {
    fill: none;
    stroke: var(--ax-amber);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ax-nc__text {
    min-width: 0;
}

.ax-nc__label {
    display: block;
    color: #fff;
    font-weight: 500;
}

.ax-nc__meta {
    display: block;
    margin-top: .12rem;
    font-family: var(--ax-mono);
    font-size: .64rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ax-on-navy-dim);
}

.ax-nc__state {
    display: grid;
    justify-items: end;
    gap: .12rem;
    text-align: right;
}

.ax-nc__state .ax-check__state { color: var(--ax-amber); }

/* --- Kanit karti ----------------------------------------------------------
   Kucuk resim, deklansor aninda merceğin altinda ne varsa onun kadrajidir:
   catlagin yollari kanit tuvaline yeniden cizilir (login-surface.js). */

.ax-evidence {
    display: grid;
    justify-items: center;
    gap: .2rem;
}

.ax-evidence__frame {
    position: relative;
    padding: 3px;
    border-radius: 5px;
    background: rgba(6, 30, 50, .7);
    box-shadow: 0 0 0 1px rgba(241, 180, 76, .45);
}

/* Kadraj koseleri - kaydin bir denetim fotografi oldugunu soyler */
.ax-evidence__frame::before,
.ax-evidence__frame::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--ax-amber);
    pointer-events: none;
}

.ax-evidence__frame::before {
    top: -2px;
    left: -2px;
    border-right: 0;
    border-bottom: 0;
}

.ax-evidence__frame::after {
    right: -2px;
    bottom: -2px;
    border-left: 0;
    border-top: 0;
}

.ax-evidence__shot {
    display: block;
    width: 72px;
    height: 54px;
    border-radius: 3px;
    background: #04182a;
}

/* Kare henuz cekilmediyse (Path2D yoksa) kart yerine acik bir ibare kalir. */
.ax-evidence__shot:not(.is-captured) {
    background:
        repeating-linear-gradient(45deg,
            rgba(147, 180, 204, .10) 0 4px,
            transparent 4px 8px),
        #04182a;
}

.ax-evidence__meta {
    font-family: var(--ax-mono);
    font-size: .58rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ax-amber);
    white-space: nowrap;
}

.ax-evidence__time {
    display: block;
    color: var(--ax-on-navy-dim);
    letter-spacing: .04em;
}

/* Trace + gauge yan yana */

.ax-panel--instruments {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.ax-trace {
    margin: 0;
    min-width: 0;
}

.ax-trace__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .5rem;
}

.ax-trace__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.ax-trace__band {
    fill: url(#axTraceBand);
    opacity: 0;
    animation: ax-fade-in .45s ease .95s forwards;
}

/* Egrinin altindaki govde hattin kendisiyle ayni anda dolar. */
.ax-trace__area {
    fill: url(#axTraceFill);
    opacity: 0;
    animation: ax-fade-in .7s ease 1.25s forwards;
}

.ax-trace__band-edge {
    stroke: rgba(241, 180, 76, .5);
    stroke-width: 1;
    stroke-dasharray: 3 4;
    opacity: 0;
    animation: ax-fade-in .45s ease .95s forwards;
}

.ax-trace__line {
    fill: none;
    stroke: url(#axTraceGrad);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ax-draw-line .95s cubic-bezier(.4, 0, .3, 1) .95s forwards;
}

.ax-trace__ccp {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: ax-pop .4s var(--ax-ease) forwards;
}

.ax-trace__ccp--1 { animation-delay: 1.14s; }
.ax-trace__ccp--2 { animation-delay: 1.42s; }
.ax-trace__ccp--3 { animation-delay: 1.70s; }

.ax-trace__legend {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
    font-family: var(--ax-mono);
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ax-on-navy-dim);
}

.ax-trace__swatch {
    width: 18px;
    height: 8px;
    border-radius: 2px;
    background: rgba(241, 180, 76, .28);
    border: 1px dashed rgba(241, 180, 76, .6);
}

/* Uygunluk halkasi */

.ax-gauge {
    display: grid;
    justify-items: center;
}

.ax-gauge__dial {
    position: relative;
    width: 84px;
    height: 84px;
}

/* SVG kabin olcusunu takip eder. Sabit 88px verilip kap 76px kalirsa halka
   tasar ve ortadaki okuma halkaya gore kayik gorunur. */
.ax-gauge__svg {
    display: block;
    width: 100%;
    height: 100%;
    /* Dolum saat 12 yonunden baslasin. */
    transform: rotate(-90deg);
}

.ax-gauge__track {
    fill: none;
    stroke: rgba(79, 176, 232, .18);
    stroke-width: 7;
}

/* pathLength="100" sayesinde offset dogrudan "kalan yuzde" demek: %98 -> 2. */
.ax-gauge__value-arc {
    fill: none;
    stroke: var(--ax-green);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ax-gauge-fill .8s cubic-bezier(.35, 0, .2, 1) 1.25s forwards;
}

.ax-gauge__readout {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    line-height: 1;
}

.ax-gauge__number {
    font-family: var(--ax-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Yuzde isareti rakamin ustune degil, yaninda ve hafif yukarida durur:
   flex-start hizalamasi onu halkanin kenarina firlatiyordu. */
.ax-gauge__unit {
    font-family: var(--ax-mono);
    font-size: .68rem;
    font-weight: 500;
    color: var(--ax-on-navy-dim);
    align-self: center;
    transform: translateY(-.45em);
}

.ax-gauge__caption {
    display: block;
    margin-top: .55rem;
    text-align: center;
    font-family: var(--ax-mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ax-on-navy-dim);
}

/* Alt satir: acik uygunsuzluk + temsili ibaresi */

.ax-hero__foot {
    margin-top: .2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: ax-fade-in .5s ease 1.95s forwards;
}

.ax-stat {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    font-family: var(--ax-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ax-on-navy-dim);
}

.ax-stat__value {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ax-green);
    font-variant-numeric: tabular-nums;
    transition: color .4s ease;
}

/* Sifir acik uygunsuzluk yesildir; bir tanesi bile acikken yesil yanlis bilgi verir. */
.ax-stat__value.is-open { color: var(--ax-amber); }

.ax-hero__notice {
    margin: 0;
    font-size: .68rem;
    letter-spacing: .04em;
    color: rgba(147, 180, 204, .75);
}

.ax-hero__notice::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(147, 180, 204, .55);
    margin-right: .45rem;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   SAG - form paneli
   -------------------------------------------------------------------------- */

.ax-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--ax-paper);
}

.ax-form-wrap {
    width: 100%;
    max-width: 408px;
}

/* Form paneli tek parca halinde kayarak acilir; ic ogelere ayri kademe
   verilmiyor - bolunme animasyonuyla ust uste binince gurultulu oluyordu. */

.ax-form__top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

/* Form karti: kagit zeminden ayrilsin, panelden kopuk durmasin. */
.ax-form-card {
    background: var(--ax-card);
    border-radius: 16px;
    padding: 2rem 1.85rem;
    box-shadow:
        0 0 0 1px rgba(13, 34, 51, .05),
        0 1px 2px rgba(13, 34, 51, .04),
        0 16px 40px -12px rgba(13, 34, 51, .16);
}

.ax-form__logo {
    display: block;
    width: 180px;
    max-width: 62%;
    height: auto;
    margin-bottom: 1.5rem;
}

.ax-form__title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ax-ink);
    margin: 0 0 .3rem;
}

.ax-form__subtitle {
    font-size: .9rem;
    color: var(--ax-ink-dim);
    margin: 0 0 1.75rem;
}

/* Dil secici - _CultureSwitcher "inline" varyantini segment kontrole cevirir.
   Aktif dugme main.css'ten gelen kurumsal maviyi (#1582c7) kullanmaya devam eder. */
.ax-lang .d-inline-flex {
    gap: 0 !important;
    padding: 3px;
    border-radius: 999px;
    background: #e8eff5;
    border: 1px solid var(--ax-line);
}

.ax-lang .uil-globe {
    margin-inline: .5rem .35rem;
    color: var(--ax-ink-dim) !important;
}

.ax-lang .btn {
    border-radius: 999px !important;
    padding: .28rem .8rem;
    font-size: .78rem;
    font-weight: 500;
    border-color: transparent !important;
    box-shadow: none !important;
}

.ax-lang .btn-outline-secondary {
    color: var(--ax-ink-dim) !important;
    background: transparent !important;
}

.ax-lang .btn-outline-secondary:hover {
    color: var(--ax-ink) !important;
    background: rgba(21, 130, 199, .08) !important;
}

/* Alanlar */

.ax-field {
    margin-bottom: 1.05rem;
}

.ax-field__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .4rem;
}

.ax-field__label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--ax-ink);
}

.ax-field__link {
    font-size: .78rem;
    color: var(--ax-ink-dim);
    text-decoration: none;
    transition: color .18s ease;
}

.ax-field__link:hover,
.ax-field__link:focus-visible {
    color: var(--ax-blue);
    text-decoration: underline;
}

.ax-field__control {
    position: relative;
}

.ax-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 .95rem;
    font-family: inherit;
    font-size: .92rem;
    color: var(--ax-ink);
    background: var(--ax-card);
    border: 1px solid var(--ax-line);
    border-radius: 10px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ax-input::placeholder {
    color: #9fb3c2;
}

.ax-input:hover {
    border-color: #bfd3e1;
}

.ax-input:focus {
    border-color: var(--ax-blue);
    box-shadow: 0 0 0 4px rgba(21, 130, 199, .14);
}

.ax-input--with-action {
    padding-right: 3rem;
}

.ax-reveal {
    position: absolute;
    top: 50%;
    right: .4rem;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ax-ink-dim);
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.ax-reveal:hover {
    color: var(--ax-blue);
    background: rgba(21, 130, 199, .08);
}

.ax-reveal svg {
    width: 18px;
    height: 18px;
}

/* Ayni anda tek ikon. Seciciler .ax-reveal svg ile ayni ozgullukte tutuluyor;
   aksi halde display:block onlari ezerdi. */
.ax-reveal .ax-reveal__on { display: block; }
.ax-reveal .ax-reveal__off { display: none; }
.ax-reveal.is-on .ax-reveal__on { display: none; }
.ax-reveal.is-on .ax-reveal__off { display: block; }

/* Beni hatirla */

.ax-remember {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 1.25rem 0 1.5rem;
    font-size: .85rem;
    color: var(--ax-ink-dim);
    cursor: pointer;
    user-select: none;
}

.ax-remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--ax-blue);
    cursor: pointer;
}

/* Aksiyonlar */

.ax-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

/* Denetci bilgi notu */

.ax-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: 1.25rem;
    padding: .8rem .95rem;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ax-ink-dim);
    background: rgba(21, 130, 199, .06);
    border: 1px solid rgba(21, 130, 199, .18);
    border-radius: 10px;
}

.ax-note svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: .1rem;
    color: var(--ax-blue);
}

.ax-note p { margin: 0; }

.ax-note strong {
    display: block;
    margin-bottom: .1rem;
    font-weight: 600;
    color: var(--ax-ink);
}

.ax-submit {
    flex: 1 1 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 48px;
    padding: 0 1.25rem;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--ax-blue) 0%, var(--ax-blue-deep) 100%);
    box-shadow: 0 6px 18px rgba(21, 130, 199, .28);
    transition: transform .16s var(--ax-ease), box-shadow .16s ease, filter .16s ease;
}

.ax-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(21, 130, 199, .34);
}

.ax-submit:active {
    transform: translateY(0) scale(.99);
    box-shadow: 0 4px 12px rgba(21, 130, 199, .26);
}

.ax-submit[disabled] {
    cursor: progress;
    filter: saturate(.75);
    transform: none;
}

.ax-submit__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ax-spin-css .7s linear infinite;
}

.ax-submit.is-loading .ax-submit__spinner { display: block; }

/* Form alti */

.ax-form__foot {
    margin-top: 1.5rem;
    text-align: center;
}

.ax-store {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--ax-blue);
    text-decoration: none;
    padding: .4rem .75rem;
    border-radius: 8px;
    transition: background-color .18s ease;
}

.ax-store:hover {
    background: rgba(21, 130, 199, .08);
}

.ax-store svg {
    width: 22px;
    height: 22px;
}

.ax-store__hint {
    display: block;
    font-size: .78rem;
    color: var(--ax-ink-dim);
    margin-bottom: .35rem;
}

.ax-copy {
    margin: 1.25rem 0 0;
    font-size: .74rem;
    color: #93a7b6;
}

.ax-copy .mdi-heart { color: #f46a6a; }

/* --------------------------------------------------------------------------
   Odak gorunurlugu - her etkilesimli ogede
   -------------------------------------------------------------------------- */

.ax-login a:focus-visible,
.ax-login button:focus-visible,
.ax-login input:focus-visible {
    outline: 2px solid var(--ax-blue);
    outline-offset: 2px;
    border-radius: 6px;
}

.ax-hero a:focus-visible,
.ax-hero button:focus-visible {
    outline-color: var(--ax-blue-lift);
}

.ax-input:focus-visible {
    outline: none; /* focus box-shadow zaten belirgin bir halka veriyor */
}

/* --------------------------------------------------------------------------
   Keyframe'ler
   -------------------------------------------------------------------------- */

@keyframes ax-fade-in {
    to { opacity: 1; }
}

@keyframes ax-rise {
    to { opacity: 1; transform: none; }
}

@keyframes ax-check-in {
    to { opacity: 1; transform: none; }
}

@keyframes ax-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes ax-draw-line {
    to { stroke-dashoffset: 0; }
}

@keyframes ax-pop {
    0%   { opacity: 0; transform: scale(.3); }
    70%  { opacity: 1; transform: scale(1.25); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes ax-gauge-fill {
    to { stroke-dashoffset: 2; }
}

/* Uygunsuzluk kayda gecince skor duser: halka geri cekilir. Daha ozgul secici
   ilk animasyonu degistirir. */
.ax-gauge__value-arc.is-adjusted {
    animation: ax-gauge-adjust .7s var(--ax-ease) forwards;
}

@keyframes ax-gauge-adjust {
    from { stroke-dashoffset: 2; }
    to   { stroke-dashoffset: 4; }
}

@keyframes ax-spin {
    to { transform: rotate(360deg); }
}

@keyframes ax-spin-css {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Duyarlilik
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .ax-hero { padding: 2.75rem 2.25rem; }
    .ax-panel--instruments { grid-template-columns: 1fr; }
    .ax-gauge { width: 100%; justify-items: center; }
}

@media (max-width: 991.98px) {
    .ax-login {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    /* Marka paneli banda iner: gosterge kumesi, catlak ve mercek gosterilmez. */
    .ax-hero {
        min-height: 200px;
        padding: 2rem 1.5rem;
        align-items: center;
    }

    .ax-hero__instruments,
    .ax-hero__foot,
    .ax-crack,
    .ax-lens {
        display: none !important;
    }

    .ax-hero__headline { font-size: 1.3rem; margin-bottom: 0; }
    .ax-hero__subline { display: none; }
    .ax-wordmark { margin-bottom: 1rem; }

    .ax-side { padding: 2.5rem 1.5rem 3rem; overflow: visible; }
    .ax-form__logo { display: none; }
    .ax-form-card { padding: 1.5rem 1.35rem; }
}

@media (max-width: 575.98px) {
    .ax-hero { padding: 1.75rem 1.25rem; min-height: 168px; }
    .ax-wordmark { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .ax-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* --------------------------------------------------------------------------
   Hareket azaltma - her sey son halinde, dongu yok
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .ax-login *,
    .ax-login *::before,
    .ax-login *::after {
        animation: none !important;
        transition: none !important;
    }

    .ax-hero__sweep { display: none; }

    .ax-wordmark,
    .ax-hero__headline,
    .ax-hero__subline,
    .ax-check,
    .ax-trace__band,
    .ax-trace__band-edge,
    .ax-trace__ccp,
    .ax-hero__foot,
    .ax-form-wrap > * {
        opacity: 1 !important;
        transform: none !important;
    }

    .ax-check__mark { stroke-dashoffset: 0 !important; }
    .ax-trace__line { stroke-dashoffset: 0 !important; }
    .ax-gauge__value-arc { stroke-dashoffset: 4 !important; }

    /* Bulgu aramasi gosterilmez, sonucu dogrudan verilir: mercek yok; catlak
       isaretli, satir acik. */
    .ax-lens { display: none !important; }

    .ax-crack.is-revealed path,
    .ax-crack.is-found .ax-crack__trace { stroke-dashoffset: 0 !important; }
    .ax-crack.is-found .ax-crack__trace,
    .ax-crack.is-found .ax-crack__mark { opacity: 1 !important; }
    .ax-login, .ax-form-wrap { transition: none !important; }
    .ax-check--nc.is-found { display: grid !important; opacity: 1 !important; }
}
