/* =============================================================
   Kartvizit Tarayıcı - Landing Page CSS
   Mobile-First | Glassmorphism | AYM Design
   ============================================================= */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --lp-primary: #4f46e5;
    --lp-primary-dark: #3730a3;
    --lp-secondary: #7c3aed;
    --lp-accent: #06b6d4;
    --lp-bg: #0a0f1e;
    --lp-bg-card: rgba(15, 23, 42, 0.85);
    --lp-glass: rgba(255, 255, 255, 0.06);
    --lp-glass-border: rgba(255, 255, 255, 0.12);
    --lp-text: #f1f5f9;
    --lp-text-muted: rgba(148, 163, 184, 0.9);
    --lp-text-dim: rgba(100, 116, 139, 0.8);
    --lp-success: #10b981;
    --lp-error: #ef4444;
    --lp-warning: #f59e0b;
    --lp-input-bg: rgba(255, 255, 255, 0.07);
    --lp-input-border: rgba(255, 255, 255, 0.15);
    --lp-input-focus: rgba(79, 70, 229, 0.6);
    --lp-radius: 16px;
    --lp-radius-sm: 10px;
    --lp-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

html {
    font-size: 16px;
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
    /* Mobile WebView Keyboard Performance Optimization #mobkeyboard #perff */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    /* Mobile WebView Optimization #perff */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    overflow-y: auto;
}

/* ---- Animated Background ---- */
.lp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Siber ağ çizgileri - arka plan alt kısım */
.lp-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 320px;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 34px,
            rgba(6, 182, 212, 0.04) 34px,
            rgba(6, 182, 212, 0.04) 35px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 34px,
            rgba(6, 182, 212, 0.04) 34px,
            rgba(6, 182, 212, 0.04) 35px);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

.lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: lp-float 8s ease-in-out infinite;
}

.lp-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5, transparent 70%);
    top: -15%;
    left: -10%;
    animation-duration: 9s;
}

.lp-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    bottom: 5%;
    right: -10%;
    animation-duration: 11s;
    animation-delay: -4s;
}

.lp-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    animation-duration: 13s;
    animation-delay: -2s;
}

@keyframes lp-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ---- Layout Wrapper ---- */
.lp-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Top Bar ---- */
.lp-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--lp-glass-border);
    font-size: 12px;
    color: var(--lp-text-dim);
    letter-spacing: 0.5px;
}

.lp-topbar a {
    color: var(--lp-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.lp-topbar a:hover {
    opacity: 0.8;
}

/* ---- Hero Section ---- */
.lp-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px 85px;
    gap: 14px;
    min-height: 100vh;
    position: relative;
}

/* Hero background image (landing-hero.jpg) */
.lp-hero-img-bg {
    position: absolute;
    inset: 0;
    background-image: url('hero.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.lp-hero-img-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(10, 15, 30, 0.6) 60%,
            rgba(10, 15, 30, 1) 100%);
}

/* Scroll hint arrow */
.lp-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--lp-text-dim);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    animation: lp-bounce-strong 2.5s ease-in-out infinite;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.lp-scroll-hint:hover {
    color: var(--lp-text-muted);
}

.lp-scroll-hint i {
    font-size: 20px;
    animation: lp-chevron-pulse 2.5s ease-in-out infinite;
}

@keyframes lp-bounce-strong {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.6;
    }
}

@keyframes lp-chevron-pulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.7;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

/* ============================================================
   MODERN AUTH PANEL - Logo + Login Card Together
   ============================================================ */

.lp-auth-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    /* Mobile: transparan - sadece form kartı belirgin */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 8px;
    position: relative;
    overflow: visible;
}

/* Tablet+: Side-by-side with glassmorphism panel */
@media (min-width: 800px) {
    .lp-auth-panel {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 48px 48px;
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(79, 70, 229, 0.12);
        border-radius: 20px;
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 25px 60px rgba(0, 0, 0, 0.3);
    }
}

/* ---- Brand / Logo Section ---- */
.lp-auth-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.lp-logo-wrap-compact {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.lp-brand-title-compact {
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 700;
    background: linear-gradient(90deg, #c4b5fd 0%, #818cf8 40%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.lp-brand-sub-compact {
    font-size: clamp(11px, 2.8vw, 14px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.2px;
    text-align: center;
    white-space: nowrap;
}

/* ---- Top Logo (Kare Logo + CARD SCANNER label) ---- */
.lp-top-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: -16px;
}

.lp-top-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(79, 70, 229, 0.6)) drop-shadow(0 0 40px rgba(124, 58, 237, 0.3));
}

/* Hero Card - güçlü glow ile */
.lp-hero-card-inner {
    width: 100%;
    aspect-ratio: 16/9;
    background: url('hero.webp') center / cover no-repeat;
    border-radius: 18px;
    box-shadow:
        0 0 0 2px rgba(79, 70, 229, 0.45),
        0 0 0 4px rgba(79, 70, 229, 0.1),
        0 12px 48px rgba(79, 70, 229, 0.45),
        0 0 80px rgba(79, 70, 229, 0.2),
        0 0 120px rgba(6, 182, 212, 0.1);
    position: relative;
}

.lp-top-logo-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(203, 213, 225, 0.6);
    text-transform: uppercase;
    text-align: center;
}

/* ---- Login Form Container ---- */
.lp-auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    /* Mobile: kendi glassmorphism kartı */
    background: rgba(10, 17, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 12px;
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 48px rgba(0, 0, 0, 0.4);
}

@media (min-width: 800px) {
    .lp-auth-form {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
}

/* ---- Brand (Old) ---- */
.lp-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lp-logo-wrap {
    position: relative;
    display: inline-block;
}

.lp-logo-img {
    max-height: 64px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(79, 70, 229, 0.4));
    transition: filter 0.3s;
}

.lp-logo-img:hover {
    filter: drop-shadow(0 0 30px rgba(79, 70, 229, 0.7));
}

.lp-logo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-logo-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.6);
}

.lp-brand-title {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 800;
    background: linear-gradient(135deg, #e2e8f0 0%, var(--lp-accent) 50%, var(--lp-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.lp-brand-sub {
    font-size: 13px;
    color: var(--lp-text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ---- Login Card ---- */
.lp-login-card {
    width: 100%;
    max-width: 420px;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
    transition: none;
    position: relative;
}

.lp-login-card::before {
    display: none;
}

.lp-login-header {
    padding: 0 0 10px 0;
    border-bottom: none;
    text-align: center;
}

.lp-login-icon {
    display: none;
}

.lp-login-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.lp-login-subtitle {
    font-size: 12px;
    color: var(--lp-text-muted);
    font-weight: 400;
}

.lp-login-body {
    padding: 0;
}

/* ---- Login Steps ---- */
.lp-step {
    overflow: hidden;
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-step.step-visible {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow: visible;
}

.lp-step.step-hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* ---- Input Group ---- */
.lp-input-group {
    margin-bottom: 10px;
    position: relative;
}

.lp-input-label {
    display: none;
}

/* Floating Label Style - Premium Minimal */
.lp-input-label-floating {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.7);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px);
    letter-spacing: 0.2px;
}

.lp-input-modern:not(:placeholder-shown)~.lp-input-label-floating,
.lp-input-modern:focus~.lp-input-label-floating {
    top: -10px;
    left: 42px;
    font-size: 12px;
    color: rgba(79, 70, 229, 0.9);
    font-weight: 600;
    letter-spacing: 0.4px;
}

.lp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lp-input-icon {
    position: absolute;
    left: 12px;
    color: var(--lp-text-dim);
    font-size: 13px;
    pointer-events: none;
    transition: color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.lp-input:hover:not(:focus)~.lp-input-icon {
    color: rgba(148, 163, 184, 0.8);
}

.lp-input,
.lp-input-modern {
    width: 100%;
    padding: 14px 14px 14px 40px;
    background: rgba(79, 70, 229, 0.06);
    border: 1.5px solid rgba(79, 70, 229, 0.25);
    border-radius: 10px;
    color: var(--lp-text);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition:
        border-color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Touch-target: min 44px height */
    min-height: 44px;
    -webkit-appearance: none;
    letter-spacing: 0.2px;
    position: relative;
}

.lp-input::placeholder,
.lp-input-modern::placeholder {
    color: rgba(100, 116, 139, 0.7);
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-input:hover:not(:focus),
.lp-input-modern:hover:not(:focus) {
    background: rgba(79, 70, 229, 0.09);
    border-color: rgba(79, 70, 229, 0.35);
}

.lp-input:focus,
.lp-input-modern:focus {
    border-color: rgba(79, 70, 229, 1);
    background: rgba(79, 70, 229, 0.16);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.5);
}

.lp-input:focus+.lp-input-icon,
.lp-input-modern:focus+.lp-input-icon,
.lp-input-wrap:focus-within .lp-input-icon {
    color: var(--lp-primary);
}

/* Şifre alanı toggle butonu */
.lp-pass-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--lp-text-dim);
    cursor: pointer;
    padding: 6px;
    font-size: 13px;
    transition:
        color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.15s;
    border-radius: 8px;
    /* Touch-target */
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.lp-pass-toggle:hover {
    color: var(--lp-text);
    background: rgba(79, 70, 229, 0.1);
}

.lp-pass-toggle:active {
    background: rgba(79, 70, 229, 0.2);
    transform: scale(0.95);
}

.lp-pass-toggle:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 1px;
}

/* Password Strength Indicator - 100P Perfect */

/* Caps Lock uyarısı - Password Input Perfect */
.lp-capslock-warn {
    display: none;
    position: absolute;
    right: 44px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--lp-warning);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    pointer-events: none;
    white-space: nowrap;
    animation: lp-strength-pulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-capslock-warn.caps-active {
    display: block;
}

@keyframes lp-strength-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---- Kullanıcı adı önizleme (step 2) ---- */
.lp-user-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    transition:
        background 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.2s;
    /* Touch-target */
    min-height: 40px;
    touch-action: manipulation;
}

.lp-user-preview:hover {
    background: rgba(79, 70, 229, 0.18);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.lp-user-preview:active {
    transform: translateY(0);
}

.lp-user-preview-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.lp-user-preview-info {
    flex: 1;
    min-width: 0;
}

.lp-user-preview-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-user-preview-hint {
    font-size: 10px;
    color: var(--lp-text-muted);
}

.lp-user-preview-change {
    font-size: 10px;
    color: var(--lp-text-dim);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ---- Login Submit Button ---- */
.lp-btn-login {
    width: 100%;
    min-height: 44px;
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
    position: relative;
    overflow: hidden;
    /* Touch-target */
    touch-action: manipulation;
}

/* ---- Divider (veya) ---- */
.lp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: rgba(100, 116, 139, 0.6);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lp-divider::before,
.lp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Google Giriş Butonu ---- */
.lp-btn-google {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(241, 245, 249, 0.9);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    touch-action: manipulation;
}

.lp-btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lp-btn-google:active {
    transform: scale(0.98);
}

/* Button progress bar - Button Perfect */
.lp-btn-login::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border-radius: var(--lp-radius-sm);
}

.lp-btn-login.btn-loading::before {
    width: 60%;
    animation: lp-progress-pulse 2s ease-in-out infinite;
}

.lp-btn-login.btn-done::before {
    width: 100%;
    background: rgba(16, 185, 129, 0.4);
    animation: none;
}

@keyframes lp-progress-pulse {
    0% {
        width: 30%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 60%;
    }
}

.lp-btn-login:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(79, 70, 229, 0.65),
        0 0 20px rgba(79, 70, 229, 0.3);
}

.lp-btn-login:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

.lp-btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lp-btn-login:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 3px;
}

/* ---- Error/Message Box ---- */
.lp-msg-box {
    padding: 12px 16px;
    border-radius: var(--lp-radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    line-height: 1.5;
    animation: slide-down 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-msg-box.msg-error {
    display: flex;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lp-msg-box.msg-success {
    display: flex;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Features Section ---- */
.lp-features {
    width: 100%;
    max-width: 900px;
    padding: 0 16px;
    margin: 0 auto;
}

.lp-features-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.lp-features-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--lp-text);
    letter-spacing: -0.2px;
    margin: 0;
}

.lp-features-title-line {
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--lp-primary), var(--lp-secondary));
}

.lp-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.lp-feature-card {
    background: rgba(12, 18, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    touch-action: manipulation;
    cursor: pointer;
}

.lp-feature-card:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lp-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.lp-feature-card:hover .lp-feature-icon {
    transform: scale(1.08);
}

.lp-feature-icon.ic-ai {
    background: rgba(55, 48, 163, 0.55);
    color: #93c5fd;
}

.lp-feature-icon.ic-org {
    background: rgba(5, 88, 72, 0.6);
    color: #34d399;
}

.lp-feature-icon.ic-stats {
    background: rgba(120, 53, 15, 0.6);
    color: #fb923c;
}

.lp-feature-icon.ic-export {
    background: rgba(6, 95, 130, 0.5);
    color: #22d3ee;
}

.lp-feature-icon.ic-secure {
    background: rgba(100, 20, 20, 0.5);
    color: #fca5a5;
}

.lp-feature-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-feature-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-text);
    line-height: 1.3;
}

.lp-feature-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
}

.lp-feature-desc {
    font-size: 12px;
    color: var(--lp-text-muted);
    line-height: 1.5;
}


/* ---- Footer ---- */
.lp-footer {
    text-align: center;
    padding: 14px 16px 20px;
    font-size: 12px;
    color: var(--lp-text-dim);
    border-top: 1px solid var(--lp-glass-border);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-footer a {
    color: var(--lp-accent);
    text-decoration: none;
}

.lp-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   TABLET+ (≥ 600px)
   ============================================================ */
@media (min-width: 600px) {
    .lp-hero {
        padding: 60px 20px 80px;
        gap: 40px;
    }

    .lp-auth-panel {
        padding: 40px 32px;
        gap: 24px;
    }

    .lp-logo-img {
        max-height: 76px;
        max-width: 240px;
    }

    .lp-brand-title {
        font-size: 34px;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lp-feature-card {
        padding: 18px 20px;
    }

    .lp-login-card {
        max-width: 440px;
    }

    .lp-security-section {
        padding: 100px 24px;
    }

    .lp-security-grid {
        gap: 18px;
    }

    .lp-input-group {
        margin-bottom: 16px;
    }

    .lp-user-preview {
        padding: 12px 16px;
    }

    .lp-input,
    .lp-input-modern {
        padding: 16px 16px 16px 44px;
        font-size: 15px;
        min-height: 48px;
    }

    .lp-btn-login {
        min-height: 48px;
        font-size: 15px;
    }
}

/* ============================================================
   DESKTOP (≥ 900px)
   ============================================================ */
@media (min-width: 900px) {
    .lp-hero {
        padding: 80px 32px 100px;
        gap: 48px;
    }

    .lp-auth-panel {
        padding: 48px 48px;
        gap: 40px;
    }

    .lp-logo-wrap-compact {
        max-width: 320px;
    }

    .lp-brand-title {
        font-size: 36px;
    }

    .lp-features {
        max-width: 900px;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lp-feature-card {
        padding: 20px 24px;
    }

    .lp-security-section {
        padding: 140px 32px;
    }

    .lp-security-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .lp-input,
    .lp-input-modern {
        padding: 16px 16px 16px 44px;
        font-size: 15px;
        min-height: 50px;
    }

    .lp-btn-login {
        min-height: 50px;
        font-size: 15px;
    }
}

/* ============================================================
   ACCESSIBILITY & MICRO-INTERACTIONS
   ============================================================ */

/* Focus ring for keyboard nav */
.lp-input:focus-visible,
.lp-input-modern:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
}

.lp-btn-login:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 3px;
}

/* ---- Page Load Animations ---- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-logo-wrap {
    animation: fade-in-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0s both;
}

.lp-brand-title {
    animation: fade-in-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.lp-brand-sub {
    animation: fade-in-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

.lp-login-card {
    animation: fade-in-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.lp-features {
    animation: fade-in-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.lp-security-section {
    animation: fade-in-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .lp-orb {
        animation: none;
    }

    .lp-step {
        transition: opacity 0.2s;
    }

    .lp-scroll-hint {
        animation: none;
    }

    .lp-logo-wrap,
    .lp-brand-title,
    .lp-brand-sub,
    .lp-login-card,
    .lp-features,
    .lp-security-section {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   GÜVENLİK BÖLÜMÜ (Security Section)
   ============================================================ */

.lp-security-section {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px 16px;
    background: linear-gradient(180deg,
            rgba(10, 15, 30, 0) 0%,
            rgba(15, 20, 50, 0.8) 20%,
            rgba(10, 15, 35, 0.95) 50%,
            rgba(10, 15, 30, 0.8) 80%,
            rgba(10, 15, 30, 0) 100%);
    overflow: hidden;
}

/* Decorative circuit line */
.lp-security-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--lp-primary));
    opacity: 0.5;
}

.lp-security-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.lp-security-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg,
            rgba(79, 70, 229, 0.2) 0%,
            rgba(124, 58, 237, 0.2) 100%);
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #818cf8;
    box-shadow:
        0 0 40px rgba(79, 70, 229, 0.25),
        0 0 80px rgba(79, 70, 229, 0.1);
    position: relative;
    animation: lp-glow-pulse 3s ease-in-out infinite;
}

@keyframes lp-glow-pulse {

    0%,
    100% {
        box-shadow:
            0 0 40px rgba(79, 70, 229, 0.25),
            0 0 80px rgba(79, 70, 229, 0.1);
    }

    50% {
        box-shadow:
            0 0 60px rgba(79, 70, 229, 0.45),
            0 0 120px rgba(79, 70, 229, 0.25);
    }
}

/* Pulsing ring */
.lp-security-badge::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(79, 70, 229, 0.25);
    animation: lp-pulse-ring 2.5s ease-out infinite;
}

@keyframes lp-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.lp-security-headline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-security-title {
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 800;
    background: linear-gradient(135deg, #e2e8f0 30%, #818cf8 70%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.lp-security-sub {
    font-size: 15px;
    color: var(--lp-text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Security feature grid */
.lp-security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: 680px;
}

.lp-security-item {
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: var(--lp-radius-sm);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition:
        background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Touch-target */
    touch-action: manipulation;
}

.lp-security-item:hover {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.lp-security-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #818cf8;
    flex-shrink: 0;
}

.lp-security-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-text);
    line-height: 1.3;
}

.lp-security-item-desc {
    font-size: 11px;
    color: var(--lp-text-muted);
    line-height: 1.5;
}

/* Enc badge below security section */
.lp-enc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 12px;
    color: #34d399;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition:
        background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.lp-enc-badge:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

/* ============================================================
   SECURITY SECTION RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
    .lp-security-section {
        padding: 100px 24px;
    }

    .lp-security-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 900px) {
    .lp-security-section {
        padding: 120px 32px;
    }

    .lp-security-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   GPU HIZLANDIRMASI & MOBILE KEYBOARD OPTIMIZATION
   ============================================================ */
/* Keyboard açılırken DOM reflow'u minimize et */
input,
textarea,
.lp-input,
.lp-input-modern {
    -webkit-appearance: none;
    appearance: none;
    /* Prevent zoom on iOS when input is focused */
    font-size: 16px;
    /* GPU acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ───────────────────────────────────────────────────────────────────────
   AYM: Son Giriş Yapılan Hesaplar (Hızlı Giriş) — glassmorphism kartlar
   #recentaccountss
─────────────────────────────────────────────────────────────────────── */
.lp-recent {
    margin-bottom: 18px;
    animation: lpRecentIn .45s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes lpRecentIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-recent-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--lp-text-dim);
    margin: 0 2px 10px;
}

.lp-recent-head i {
    font-size: 12px;
    color: var(--lp-accent);
}

.lp-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-recent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--lp-radius-sm);
    background: var(--lp-glass);
    border: 1px solid var(--lp-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    text-align: left;
    color: var(--lp-text);
    transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

.lp-recent-card:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--lp-input-focus);
}

.lp-recent-card:active {
    transform: scale(.985);
}

/* Orijinal hesap önizleme avatarı (.lp-user-preview-avatar) ile birebir aynı:
   yuvarlak + gradient. Sadece boyut listede biraz daha büyük (36px). #recentaccountss */
.lp-recent-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    /* Arka plan rengi JS'te inline basılır (acc.bg) → dashboard'daki
       .user-avatar-chip ile AYNI kullanıcıya özel renk. Burada sadece fallback. */
    background: var(--lp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

/* Profil logosu avatarı tamamen doldursun, yuvarlak kırpılsın */
.lp-recent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.lp-recent-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-recent-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-recent-type {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--lp-text-muted);
}

.lp-recent-type i {
    font-size: 11px;
    opacity: .85;
}

.lp-recent-del {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-error);
    font-size: 13px;
    transition: background .2s ease, color .2s ease;
}

.lp-recent-del:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--lp-error);
}

/* Form konteynerinin momentum scroll'u */
.lp-login-body,
.lp-auth-panel {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}