/* =========================================================
   Giriş sayfası — iki sütunlu düzen
   Renkler panel.css token'larından gelir (koyu tema kendiliğinden çalışsın diye
   burada yeni sabit hex yazılmaz). Bu dosya ayrıdır çünkü view içindeki CSS
   @media kuralları zFramework derleyicisini bozuyor.
   ========================================================= */

/* auth/main.php gövdesi flex-center; sarmalayıcı tam genişlik + tam yükseklik
   alarak o düzeni kendi içinde ezer — ortak layout'a dokunmaya gerek kalmıyor. */
.login-wrap {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100vh;
}

/* ── Sol: form sütunu ───────────────────────────────────── */
.login-form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    min-width: 0;
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* app.main sidebar markasının aynısı: S ikonu + başlık.
   logo-sm koyu temada panel.css'teki kuralla beyaza boyanır. */
.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 30px;
}

.login-brand-ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.login-brand-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ast-text);
    white-space: nowrap;
}

.login-title {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: var(--ast-text);
}

.login-subtitle {
    text-align: center;
    font-size: 13.5px;
    color: var(--ast-muted);
    margin-bottom: 28px;
}

.login-form-col .form-label {
    font-size: 13px;
    font-weight: 600;
}

.login-form-col .form-control {
    height: 46px;
}

.login-link {
    color: var(--ast-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.login-link:hover {
    text-decoration: underline;
}

.login-pass-wrap {
    position: relative;
}

.login-pass-wrap .form-control {
    padding-right: 42px;
}

.login-pass-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    border: none;
    background: transparent;
    color: var(--ast-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-submit {
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
}

.login-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
    font-size: 12px;
    color: var(--ast-muted);
}

.login-theme-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ast-muted);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
}

.login-theme-btn:hover {
    background: rgba(128, 128, 128, .12);
}

/* ── PWA yükleme kutusu ─────────────────────────────────── */
.login-pwa {
    display: none;
    margin-top: 18px;
}

.login-pwa-box {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: rgba(var(--ast-accent-rgb, 37, 99, 235), .08);
    border: 1.5px solid rgba(var(--ast-accent-rgb, 37, 99, 235), .2);
    border-radius: 12px;
    color: var(--ast-accent);
    cursor: pointer;
    text-align: left;
}

.login-pwa-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--ast-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

/* ── Sağ: görsel sütunu ─────────────────────────────────── */
.login-visual-col {
    display: none;
    position: relative;
    overflow: hidden;
    padding: 40px;
    background: linear-gradient(145deg, #0b1e3a 0%, #123a72 45%, var(--ast-accent) 100%);
    align-items: center;
    justify-content: center;
}

/* zemindeki yumuşak ışık lekeleri */
.login-visual-col::before,
.login-visual-col::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-visual-col::before {
    width: 620px;
    height: 620px;
    top: -240px;
    right: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 65%);
}

.login-visual-col::after {
    width: 520px;
    height: 520px;
    bottom: -220px;
    left: -160px;
    background: radial-gradient(circle, rgba(96, 165, 250, .3) 0%, rgba(96, 165, 250, 0) 68%);
}

.login-visual-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 38px;
}

/* Görsel: şimdilik ürün mockup'ı (SVG). Gerçek müşteri referans fotoğrafı
   gelince yalnız src değişir + aşağıdaki --photo sınıfı eklenir. */
.login-visual-media {
    width: 100%;
    display: block;
    object-fit: contain;
}

.login-visual-media--photo {
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
}

.login-quote {
    color: #fff;
}

.login-quote-text {
    font-size: 23px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 14px;
}

.login-quote-by {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .72);
    margin: 0;
}

/* ── Geniş ekran: iki sütun (IT modülüyle aynı eşik) ───── */
@media (min-width: 992px) {
    .login-wrap {
        grid-template-columns: 1fr 1fr;
    }

    .login-form-col {
        padding: 48px 56px;
    }

    .login-visual-col {
        display: flex;
    }
}

@media (min-width: 1400px) {
    .login-form-inner {
        max-width: 420px;
    }

    .login-quote-text {
        font-size: 25px;
    }
}

/* ── Referans carousel'i (sağ panel) ────────────────────── */
.login-refs {
    position: relative;
    width: 100%;
}

.login-ref {
    display: none;
    margin: 0;
}

.login-ref.is-active {
    display: block;
    animation: loginRefIn .45s ease;
}

@keyframes loginRefIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.login-ref-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .4);
}

.login-ref figcaption {
    color: #fff;
    margin-top: 30px;
}

.login-ref-stars {
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.login-ref-stars .is-off {
    color: rgba(255, 255, 255, .3);
}

.login-ref-text {
    /* Referansı müşteri yazıyor; boşluksuz uzun metin paneli taşırmasın. */
    overflow-wrap: anywhere;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 18px;
}

.login-ref-by {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-ref-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .35);
}

.login-ref-avatar--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.login-ref-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.login-ref-who strong {
    font-size: 14px;
    font-weight: 700;
}

.login-ref-who small {
    overflow-wrap: anywhere;
    font-size: 12px;
    color: rgba(255, 255, 255, .68);
}

.login-ref-nav {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

.login-ref-nav button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s ease;
}

.login-ref-nav button:hover {
    background: rgba(255, 255, 255, .22);
}
