/* HALDIZ ERP — referans login tasarımı */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.login-page {
    --erp-navy: #0b0e21;
    --erp-navy-2: #12162e;
    --erp-blue: #3b82f6;
    --erp-purple: #a855f7;
    --erp-text: #0f172a;
    --erp-muted: #64748b;
    --erp-border: #e5e7eb;
    --erp-input-bg: #f3f4f6;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: var(--erp-text);
}

.login-page * {
    box-sizing: border-box;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 100vh;
}

/* —— Sol marka paneli —— */
.erp-brand-panel {
    position: relative;
    background:
        radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(168, 85, 247, 0.14) 0%, transparent 40%),
        linear-gradient(155deg, #0b0e21 0%, #12162e 45%, #1a1f45 100%);
    color: #fff;
    padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3.5vw, 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.erp-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 85%);
    pointer-events: none;
}

.erp-brand-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.erp-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--erp-blue) 0%, var(--erp-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    flex-shrink: 0;
}

.erp-logo-mark i {
    font-size: 1.25rem;
    line-height: 1;
}

.brand-logo-kolay--card {
    display: block;
    height: clamp(72px, 14vw, 96px);
    width: auto;
    max-width: min(100%, 260px);
    margin: 0 auto 1.15rem;
    object-fit: contain;
}

.erp-logo-mark--lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.65rem;
    margin: 0 auto 1rem;
}

.erp-brand-title strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.login-brand-kolay {
    display: block;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.login-brand-kolay--mobile {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    letter-spacing: 0.12em;
    color: #0f172a;
    text-shadow: none;
}

.erp-brand-title span {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

.erp-hero {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
}

.erp-hero-text h1 {
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.85rem;
}

.erp-hero-text h1 .gradient {
    background: linear-gradient(90deg, var(--erp-blue), var(--erp-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.erp-hero-text p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    max-width: 34ch;
}

.erp-hero-visual {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.erp-dashboard-mock {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1.15;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 1rem;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
}

.erp-mock-header {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.erp-mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.erp-mock-chart {
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.25) 0%, transparent 100%);
    border-bottom: 2px solid var(--erp-blue);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.erp-mock-chart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 45 L30 38 L60 42 L90 25 L120 30 L150 15 L180 22 L200 8' fill='none' stroke='%233b82f6' stroke-width='2'/%3E%3C/svg%3E") center/cover no-repeat;
    opacity: 0.9;
}

.erp-mock-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.erp-mock-bar {
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.3));
}

.erp-mock-bar:nth-child(2) { height: 48px; }
.erp-mock-bar:nth-child(3) { height: 28px; }
.erp-mock-bar:nth-child(4) { height: 42px; }

.erp-mock-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.erp-mock-card {
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-features-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: clamp(1.25rem, 2.5vh, 1.75rem);
}

.erp-feature-card {
    padding: 0.85rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, border-color 0.2s;
}

.erp-feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.erp-feature-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
}

.erp-feature-card strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.erp-feature-card span {
    display: block;
    font-size: 0.62rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
}

.erp-stats-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.erp-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.erp-stat i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.erp-stat strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.erp-stat span {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.1rem;
}

.erp-trust-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: auto;
    padding-top: 0.5rem;
}

.erp-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
}

.erp-trust-row i {
    color: #60a5fa;
    font-size: 0.85rem;
}

.erp-brand-footer {
    position: relative;
    z-index: 2;
    margin-top: clamp(1.25rem, 2.5vh, 2rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

/* —— Sağ giriş paneli —— */
.erp-login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #f8fafc;
    overflow: hidden;
}

.erp-login-panel::before {
    content: '';
    position: absolute;
    right: -5%;
    bottom: -8%;
    width: 55%;
    height: 45%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath d='M0 120 Q100 80 200 110 T400 90' fill='none' stroke='%233b82f6' stroke-width='1' opacity='0.15'/%3E%3Cpath d='M0 140 Q120 100 240 130 T400 110' fill='none' stroke='%23a855f7' stroke-width='1' opacity='0.12'/%3E%3Cpath d='M0 160 Q80 130 160 150 T320 140 T400 155' fill='none' stroke='%233b82f6' stroke-width='0.8' opacity='0.1'/%3E%3C/svg%3E") no-repeat center/contain;
    pointer-events: none;
}

.erp-lang-pill {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 5;
}

.erp-lang-pill form {
    margin: 0;
}

.erp-lang-pill select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--erp-border);
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
    padding: 0.45rem 2rem 0.45rem 2.15rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--erp-text);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    min-width: 72px;
}

.erp-lang-pill::before {
    content: '\F3EE';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--erp-muted);
    pointer-events: none;
    z-index: 1;
}

.erp-login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    padding: 2.25rem 2rem 1.75rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 24px 48px -12px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(15, 23, 42, 0.03);
}

.erp-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.erp-card-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

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

.erp-card-divider {
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--erp-blue), var(--erp-purple));
    margin: 0.85rem auto 0;
}

.erp-input-wrap {
    position: relative;
    margin-bottom: 0.85rem;
}

.erp-input-wrap .input-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.erp-input-wrap .form-control {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 2.75rem 0.65rem 2.65rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--erp-input-bg);
    font-size: 0.875rem;
    color: var(--erp-text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.erp-input-wrap .form-control::placeholder {
    color: #94a3b8;
}

.erp-input-wrap .form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.erp-password-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0.35rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

.erp-password-toggle:hover {
    color: #64748b;
    background: rgba(15, 23, 42, 0.04);
}

.erp-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.78rem;
}

.erp-form-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--erp-muted);
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.erp-form-options input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--erp-blue);
    cursor: pointer;
}

.erp-form-options a {
    color: var(--erp-blue);
    text-decoration: none;
    font-weight: 600;
}

.erp-form-options a:hover {
    text-decoration: underline;
}

.erp-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--erp-blue) 0%, var(--erp-purple) 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.erp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.42);
}

.erp-btn-primary:active {
    transform: translateY(0);
}

.erp-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.erp-separator::before,
.erp-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--erp-border);
}

.erp-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1.5px solid rgba(59, 130, 246, 0.35);
    background: #fff;
    color: var(--erp-blue);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.erp-btn-secondary:hover {
    background: rgba(59, 130, 246, 0.04);
    border-color: var(--erp-blue);
    color: var(--erp-blue);
}

.erp-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--erp-border);
}

.erp-card-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: 0.62rem;
    font-weight: 600;
    color: #15803d;
}

.erp-card-badges i {
    font-size: 0.7rem;
}

.login-page .alert {
    border: none;
    border-radius: 12px;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
}

.login-page .alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.login-page .alert-warning {
    background: #fffbeb;
    color: #92400e;
}

.login-page .alert-success {
    background: #f0fdf4;
    color: #166534;
}

.erp-mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 1.25rem;
}

.erp-card-logo {
    margin-bottom: 0;
}

.erp-mobile-brand strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

@media (max-width: 1199.98px) {
    .erp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .erp-hero {
        grid-template-columns: 1fr;
    }

    .erp-hero-visual {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .erp-brand-panel {
        display: none;
    }

    .erp-mobile-brand {
        display: block;
    }

    .erp-card-header .erp-card-logo {
        display: none;
    }

    .erp-login-panel {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 4rem;
    }

    .erp-login-card {
        padding: 1.75rem 1.35rem 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 575.98px) {
    .erp-stats-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}
