/* ============================================================
   VALEO REPORT — Marka & Tema
   Palet: Valeo yeşili (#97D700) + koyu slate sidebar
   ============================================================ */
:root {
    /* Marka renkleri */
    --valeo-green: #97D700;
    --valeo-green-dk: #7AB800;
    --valeo-green-darker: #5f9400;
    --valeo-green-soft: rgba(151, 215, 0, .14);

    /* Nötr / arayüz */
    --ink: #1c2532; /* sidebar koyu zemin */
    --ink-2: #141b26;
    --heading: #1f2937; /* başlık/metin koyu */
    --muted: #6b7280; /* ikincil metin */
    --line: #e6e9ec; /* ayraç */
    --line-soft: #eef1f3;
    --bg: #f3f5f4; /* sayfa zemini */
    --white: #ffffff;

    /* Grafik/durum yardımcı renkleri */
    --c-blue: #2f80ed;
    --c-teal: #17b3a3;
    --c-orange: #f2994a;
    --c-purple: #9b6dff;
    --c-red: #eb5757;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(20, 27, 38, .07), 0 1px 2px rgba(20, 27, 38, .04);
    --shadow-lg: 0 12px 32px rgba(20, 27, 38, .12);
    --transition: all .18s cubic-bezier(.4, 0, .2, 1);

    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-cond: 'Barlow Condensed', var(--font);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    font-family: var(--font);
    color: var(--heading);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ============================================================
   MARKA LOGO (wordmark + comet swoosh)
   ============================================================ */
.valeo-wordmark {
    font-family: var(--font-cond);
    font-weight: 700;
    font-style: italic;
    letter-spacing: .5px;
    line-height: 1;
    color: var(--valeo-green);
}

/* Logo görseli — sidebar boyutu (varsayılan) */
.valeo-logo-img {
    display: block;
    width: 120px;
    height: auto;
}

/* Login büyük varyant */
.valeo-logo.lg .valeo-logo-img { width: 210px; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.login-left {
    background: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 55%, #223019 100%);
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        width: 460px;
        height: 460px;
        right: -160px;
        top: -120px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(151,215,0,.16), transparent 70%);
    }

    .login-left::after {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        left: -120px;
        bottom: -120px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(151,215,0,.08), transparent 70%);
    }

.login-brand { position: relative; z-index: 1; }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--valeo-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(151,215,0,.35);
}

    .brand-icon svg {
        width: 32px;
        height: 32px;
        stroke: var(--ink-2);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.brand-logo h1 {
    margin: 0;
    font-family: var(--font-cond);
    font-weight: 700;
    font-style: italic;
    color: #fff;
    letter-spacing: 1px;
    line-height: .9;
}

    .brand-logo h1 span { color: var(--valeo-green); }

.login-tagline {
    color: rgba(255,255,255,.62);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    max-width: 420px;
}

.login-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.login-stat-item .stat-number {
    font-family: var(--font-cond);
    font-size: 2rem;
    font-weight: 700;
    color: var(--valeo-green);
    line-height: 1;
}

.login-stat-item .stat-label {
    color: rgba(255,255,255,.5);
    font-size: .82rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.login-card { width: 100%; max-width: 400px; }

.login-lang { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 18px; }

.login-lang-item {
    padding: 5px 10px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

    .login-lang-item:hover { border-color: var(--valeo-green); color: var(--heading); }

    .login-lang-item.active { background: var(--valeo-green); border-color: var(--valeo-green); color: var(--ink-2); }

.login-card-header { margin-bottom: 28px; }

    .login-card-header h2 {
        margin: 0 0 6px;
        font-family: var(--font-cond);
        font-size: 2rem;
        font-weight: 700;
        color: var(--heading);
    }

    .login-card-header p {
        margin: 0;
        color: var(--muted);
        font-size: .92rem;
    }

.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 7px;
}

.input-wrapper { position: relative; }

.input-icon-el {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--muted);
    pointer-events: none;
}

    .input-icon-el svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.form-control {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-family: var(--font);
    font-size: .95rem;
    color: var(--heading);
    background: #fafbfa;
    transition: var(--transition);
    outline: none;
}

    .form-control.input-icon { padding-left: 44px; }

    .form-control:focus {
        border-color: var(--valeo-green);
        background: #fff;
        box-shadow: 0 0 0 4px var(--valeo-green-soft);
    }

    .form-control.is-invalid { border-color: var(--c-red); }

.toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--muted);
    display: flex;
}

    .toggle-pass svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 22px;
    font-size: .88rem;
    color: var(--muted);
}

    .remember-row input { width: 16px; height: 16px; accent-color: var(--valeo-green-dk); }

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--valeo-green);
    color: var(--ink-2);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(151,215,0,.3);
}

    .btn-login:hover { background: var(--valeo-green-dk); transform: translateY(-1px); }

    .btn-login:disabled { opacity: .8; cursor: default; }

    .btn-login svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.6;
}

.alert-error, .alert-session {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    margin-bottom: 18px;
}

.alert-error {
    background: #fdecec;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

    .alert-error svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

.alert-session {
    background: #fef6e7;
    color: #b9770e;
    border: 1px solid #f7e2b0;
}

.text-danger { color: var(--c-red); font-size: .78rem; margin-top: 5px; display: block; }

@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-left { display: none; }
}
