﻿* {
    box-sizing: border-box;
}

:root {
    --bg-main: #eef3f8;
    --bg-soft: #f7f9fc;
    --panel: #ffffff;
    --panel-2: #f8fbff;
    --line: #dde6f0;
    --line-soft: #e8eef5;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --success: #22c55e;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #b91c1c;
    --warn-bg: #fff7ed;
    --warn-border: #fdba74;
    --warn-text: #c2410c;
    --shadow-main: 0 24px 60px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%), radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 26%), linear-gradient(180deg, #f4f7fb 0%, #edf2f7 100%);
    color: var(--text);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* GENEL */
.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* PENCERE */
.login-window {
    width: 100%;
    max-width: 1120px;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255,255,255,0.92);
    border: 1px solid #dce5ef;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(8px);
}

/* ÜST BAR */
.window-topbar {
    height: 58px;
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
    padding: 0 18px;
    background: linear-gradient(180deg, #fdfefe 0%, #f4f7fb 100%);
    border-bottom: 1px solid var(--line-soft);
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .window-dots span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        display: block;
    }

        .window-dots span:nth-child(1) {
            background: #fb7185;
        }

        .window-dots span:nth-child(2) {
            background: #fbbf24;
        }

        .window-dots span:nth-child(3) {
            background: #34d399;
        }

.window-title {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-version {
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

/* İÇ GÖVDE */
.window-body {
    display: grid;
    grid-template-columns: 1.08fr 460px;
    min-height: 620px;
}

/* SOL ALAN */
.login-left {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
    border-right: 1px solid var(--line-soft);
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-panel {
    width: 100%;
    max-width: 470px;
}

.logo-box {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e4ebf3;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    margin-bottom: 24px;
}

.brand-logo {
    width: 100%;
    max-width: 95px;
    max-height: 95px;
    object-fit: contain;
    display: block;
}

.brand-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid #dbeafe;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.brand-panel h1 {
    margin: 0 0 12px 0;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
}

.brand-desc {
    margin: 0 0 28px 0;
    max-width: 420px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.brand-features {
    display: grid;
    gap: 14px;
    max-width: 360px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 16px;
    background: rgba(255,255,255,0.78);
    border: 1px solid #e7edf5;
    border-radius: 16px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.10);
    flex: 0 0 auto;
}

/* SAĞ ALAN */
.login-right {
    background: #ffffff;
    padding: 34px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-panel {
    width: 100%;
    max-width: 360px;
}

/* ÜST ETİKET */
.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.panel-badge,
.panel-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.panel-badge {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: var(--primary);
}

.panel-version {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* FORM BAŞLIK */
.form-header h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--text);
}

.form-header p {
    margin: 10px 0 24px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

/* FORM */
.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 9px;
        font-size: 14px;
        font-weight: 800;
        color: #334155;
    }

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    z-index: 2;
    pointer-events: none;
}

    .input-icon svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.form-input,
.input-wrap input,
.input-wrap input[type="text"],
.input-wrap input[type="password"] {
    width: 100%;
    height: 56px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #f8fafc;
    padding: 0 16px 0 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    outline: none;
    transition: all .20s ease;
    -webkit-appearance: none;
    appearance: none;
}

    .form-input:focus,
    .input-wrap input:focus,
    .input-wrap input[type="text"]:focus,
    .input-wrap input[type="password"]:focus {
        background: #fff;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    }

    .form-input::placeholder,
    .input-wrap input::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }

/* BUTON */
.login-btn {
    width: 100%;
    height: 56px;
    margin-top: 6px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
    transition: all .20s ease;
}

    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
    }

    .login-btn:active {
        transform: translateY(0);
    }

    .login-btn:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    .login-btn svg {
        width: 18px;
        height: 18px;
        display: block;
    }

/* HATA */
.validation-summary-errors,
.temp-error {
    margin-bottom: 16px;
    padding: 14px 15px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.7;
}

.validation-summary-errors {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

    .validation-summary-errors li {
        margin: 0;
    }

.temp-error {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    color: var(--warn-text);
}

.field-validation-error {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 700;
}

/* ALT */
.login-footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.secure-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

/* MVC VALIDATION */
input.input-validation-error,
textarea.input-validation-error,
select.input-validation-error {
    border-color: #ef4444 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
}

/* TABLET */
@media (max-width: 980px) {
    .app-shell {
        padding: 16px;
    }

    .window-body {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 34px 24px 22px 24px;
        border-right: none;
        border-bottom: 1px solid var(--line-soft);
    }

    .brand-panel {
        max-width: 100%;
        text-align: center;
    }

    .logo-box {
        margin-left: auto;
        margin-right: auto;
    }

    .brand-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .brand-features {
        max-width: 100%;
    }

    .login-right {
        padding: 24px 18px 26px 18px;
    }

    .form-panel {
        max-width: 100%;
    }
}

/* MOBILE */
@media (max-width: 640px) {
    .app-shell {
        padding: 10px;
    }

    .login-window {
        border-radius: 22px;
    }

    .window-topbar {
        grid-template-columns: 78px 1fr 70px;
        height: 50px;
        padding: 0 12px;
    }

    .window-title {
        font-size: 12px;
    }

    .window-version {
        font-size: 10px;
    }

    .window-dots span {
        width: 10px;
        height: 10px;
    }

    .login-left {
        padding: 24px 16px 16px 16px;
    }

    .logo-box {
        width: 108px;
        height: 108px;
        border-radius: 24px;
        margin-bottom: 16px;
    }

    .brand-logo {
        max-width: 74px;
        max-height: 74px;
    }

    .brand-mini {
        font-size: 11px;
        padding: 0 12px;
        min-height: 34px;
    }

    .brand-panel h1 {
        font-size: 28px;
    }

    .brand-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .brand-features {
        gap: 10px;
    }

    .feature-item {
        min-height: 44px;
        font-size: 13px;
        padding: 0 13px;
        justify-content: center;
    }

    .login-right {
        padding: 18px 14px 20px 14px;
    }

    .panel-top {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
    }

    .panel-badge,
    .panel-version {
        width: 100%;
        text-align: center;
    }

    .form-header h2 {
        font-size: 26px;
        text-align: center;
    }

    .form-header p {
        text-align: center;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-input,
    .input-wrap input,
    .input-wrap input[type="text"],
    .input-wrap input[type="password"],
    .login-btn {
        height: 54px;
        font-size: 15px;
    }

    .secure-note {
        width: 100%;
        justify-content: center;
    }
}

/* KÜÇÜK TELEFON */
@media (max-width: 380px) {
    .window-topbar {
        grid-template-columns: 64px 1fr 54px;
    }

    .window-title {
        font-size: 11px;
    }

    .window-version {
        font-size: 9px;
    }

    .brand-panel h1 {
        font-size: 24px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 13px;
    }

    .panel-badge,
    .panel-version {
        font-size: 11px;
        padding: 0 10px;
    }

    .form-input,
    .input-wrap input,
    .input-wrap input[type="text"],
    .input-wrap input[type="password"] {
        padding-left: 46px;
    }

    .input-icon {
        left: 14px;
    }
}
