/* IA: Auth/Login — kurumsal split layout (light / dark, dakixTheme ile senkron) */

html.login1-page.login-theme-light,
html.login1-page.login-theme-light body {
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 214, 222, 0.26) 0%, rgba(255, 214, 222, 0.08) 38%, rgba(248, 251, 255, 0) 72%), url('/images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #f3f6fa;
    color: #1e293b;
    min-height: 100vh;
}

html.login1-page.login-theme-dark,
html.login1-page.login-theme-dark body {
    background-image: linear-gradient(180deg, rgba(10, 16, 36, 0.9) 0%, rgba(8, 14, 30, 0.94) 100%), url('/images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #0b1227;
    color: #e2e8f0;
    min-height: 100vh;
}

html.login1-page.login-theme-light .login1-shell,
html.login1-page.login-theme-dark .login1-shell {
    background: transparent;
}

.login1-shell {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* —— Sol marka paneli —— */
.login1-brand {
    flex: 1 1 44%;
    max-width: 520px;
    padding: 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

html.login-theme-light .login1-brand {
    background: linear-gradient(145deg, #6b7f88 0%, #80949d 42%, #94a8b0 100%);
    color: #fff;
}

html.login-theme-dark .login1-brand {
    background: linear-gradient(160deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #f1f5f9;
}

.login1-brand::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    right: -100px;
    pointer-events: none;
}

.login1-brand-logo img {
    height: 44px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.login1-brand h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.login1-brand-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.55;
    max-width: 360px;
}

.login1-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.login1-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.login1-features i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.login1-brand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-login1-brand {
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-login1-brand:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border-color: #fff;
}

/* —— Sağ form paneli —— */
.login1-form-panel {
    flex: 1 1 56%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Modül ağı: açık + koyu tema, yalnızca sağ panelde */
.login1-network-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

html.login1-page .login1-network-bg #login-light-network {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

html.login1-page .login1-network-bg .light-network-svg,
html.login1-page .login1-network-bg .dakix-net {
    width: 100%;
    height: 100%;
    display: block;
}

html.login1-page .login1-form-panel,
html.login1-page .login1-form-wrap {
    background: transparent;
}

html.login1-page .login1-topbar,
html.login1-page .login1-form-wrap,
html.login1-page .login1-footer {
    position: relative;
    z-index: 1;
}

/* Açık tema: çizgiler ve modül kartları (okunaklı) */
html.login1-page.login-theme-light .login1-network-bg .dakix-net .line-base {
    stroke: rgba(71, 85, 105, 0.38);
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .line-stream {
    stroke: rgba(51, 65, 85, 0.62);
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .module-card {
    fill: rgba(255, 255, 255, 0.94);
    stroke: rgba(148, 163, 184, 0.72);
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .module-inner {
    fill: rgba(248, 250, 252, 0.98);
    stroke: rgba(203, 213, 225, 0.85);
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .module-label {
    fill: rgba(30, 41, 59, 0.9);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .module-ink {
    fill: rgba(51, 65, 85, 0.85);
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .module-muted {
    fill: rgba(100, 116, 139, 0.8);
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .module-node {
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.12));
}

html.login1-page.login-theme-light .login1-network-bg .dakix-net .module-node:hover {
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.2)) drop-shadow(0 0 8px rgba(255, 59, 59, 0.2));
}

.login1-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
}

/* IA: Sosyal medya — sol marka paneli (Auth/Login ile aynı hesaplar) */
.login1-social {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    margin-left: 5rem;
}

.login1-social-brand a {
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s, transform 0.2s;
}

.login1-social-brand a:hover {
    color: #fff;
    transform: translateY(-2px);
}

html.login-theme-light .login1-topbar {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
}

html.login-theme-dark .login1-topbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(11, 18, 39, 0.35);
}

.login1-theme-toggle .btn {
    padding: 0.38rem 0.6rem;
    border-radius: 8px;
}

html.login-theme-light .login1-theme-toggle .btn.active {
    background: #80949d;
    border-color: #80949d;
    color: #fff;
}

html.login-theme-dark .login1-theme-toggle .btn {
    border-color: #475569;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.8);
}

html.login-theme-dark .login1-theme-toggle .btn.active {
    background: #475569;
    border-color: #64748b;
    color: #f8fafc;
}

.login1-form-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1.5rem 3rem;
    box-sizing: border-box;
}

.login1-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    flex-shrink: 0;
    padding: 2.25rem 2rem;
    border-radius: 12px;
}

html.login-theme-light .login1-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.06);
}

html.login-theme-dark .login1-card {
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.login1-card-logo {
    text-align: center;
    margin-bottom: 1.25rem;
}

.login1-card-logo img {
    height: 40px;
}

html.login-theme-dark .login1-card-logo .login1-logo-light {
    display: none;
}

html.login-theme-light .login1-card-logo .login1-logo-dark {
    display: none;
}

.login1-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.35rem;
}

html.login-theme-light .login1-card h2 {
    color: #0f172a;
}

.login1-card-sub {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

html.login-theme-light .login1-card-sub {
    color: #64748b;
}

html.login-theme-dark .login1-card-sub {
    color: #94a3b8;
}

.login1-field {
    position: relative;
    margin-bottom: 1rem;
}

.login1-field > i.bi:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}

.login1-field .form-control {
    padding-left: 2.5rem;
    height: 48px;
    border-radius: 8px;
    font-size: 0.95rem;
}

html.login-theme-light .login1-field .form-control {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

html.login-theme-light .login1-field .form-control:focus {
    border-color: #80949d;
    box-shadow: 0 0 0 3px rgba(128, 148, 157, 0.2);
    background: #fff;
}

html.login-theme-dark .login1-field .form-control {
    border: 1px solid #475569;
    background: #0f172a;
    color: #f1f5f9;
}

html.login-theme-dark .login1-field .form-control:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

.login1-toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 2;
}

.login1-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

html.login-theme-light .login1-meta,
html.login-theme-light .login1-forgot {
    color: #64748b;
}

html.login-theme-dark .login1-meta {
    color: #94a3b8;
}

.login1-forgot {
    text-decoration: none;
}

html.login-theme-light .login1-forgot:hover {
    color: #475569;
}

html.login-theme-dark .login1-forgot {
    color: #94a3b8;
}

html.login-theme-dark .login1-forgot:hover {
    color: #e2e8f0;
}

.btn-login1-primary {
    width: 100%;
    height: 50px;
    background: #80949d;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-login1-primary:hover {
    background: #73858d;
    color: #fff;
}

.btn-login1-brand[type="button"] {
    cursor: pointer;
}

/* IA: Dakix Tanıtım katalog modalı (login.js ile uyumlu) */
.book-view-wrap {
    perspective: 1600px;
    perspective-origin: 50% 50%;
    max-width: 100%;
    margin: 0 auto;
}

.book-perspective {
    position: relative;
    width: 100%;
    height: min(62vh, 520px);
    min-height: min(62vh, 520px);
    border-radius: 4px 12px 12px 4px;
    background: linear-gradient(135deg, #f6f4f0 0%, #ebe6df 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 12px 40px rgba(35, 35, 41, 0.18),
        4px 0 0 rgba(0, 0, 0, 0.06);
    transform-style: preserve-3d;
    overflow: visible;
    user-select: none;
}

.book-page-layer {
    position: absolute;
    inset: 0;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px 12px 12px 4px;
    overflow: visible;
}

.book-page-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-page-top {
    z-index: 2;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.58s cubic-bezier(0.33, 0.02, 0.24, 1);
    backface-visibility: hidden;
    touch-action: none;
    cursor: grab;
}

.book-page-top.flipping-next {
    transform: rotateY(-92deg);
}

.book-page-top.flipping-prev {
    transform-origin: right center;
    transform: rotateY(92deg);
}

.book-page-under {
    z-index: 1;
    background: linear-gradient(to right, rgb(167, 167, 167), rgb(252, 252, 252));
}

.book-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.book-toolbar .btn-book-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(128, 148, 157, 0.5);
    background: rgba(255, 255, 255, 0.85);
    color: #4a5c64;
}

.book-toolbar .btn-book-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.book-page-indicator {
    font-size: 0.95rem;
    color: #5a6d75;
    min-width: 5rem;
    text-align: center;
}

.login1-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
}

html.login-theme-light .login1-footer {
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
}

html.login-theme-dark .login1-footer {
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.login1-footer a {
    color: inherit;
    text-decoration: underline;
}

#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

html.login-theme-dark #loadingOverlay {
    background: rgba(15, 23, 42, 0.8);
}

@media (max-width: 991px) {
    html.login1-page .login1-network-bg {
        opacity: 0.75;
    }

    .login1-shell {
        flex-direction: column;
    }

    .login1-brand {
        flex: none;
        max-width: none;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .login1-brand h1 {
        font-size: 1.45rem;
    }

    .login1-brand-actions {
        margin-top: 1rem;
    }

    .login1-social {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .login1-card {
        padding: 1.75rem 1.25rem;
    }
}
