/* ========================================
   Login Page — Kurumsal Split-Screen Tasarım
   ======================================== */

:root {
    --brand-navy-900: #0b1b33;
    --brand-navy-800: #10233f;
    --brand-navy-700: #16304f;
    --brand-accent: #2f6feb;
    --brand-accent-dark: #2258c4;
    --ink-900: #111827;
    --ink-700: #374151;
    --ink-500: #6b7280;
    --ink-300: #d1d5db;
    --ink-100: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

.login-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ---------- Sol panel: marka ---------- */
.brand-pane {
    position: relative;
    flex: 0 0 44%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 56px;
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 111, 235, 0.35), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(47, 111, 235, 0.25), transparent 50%),
        linear-gradient(160deg, var(--brand-navy-900) 0%, var(--brand-navy-800) 55%, var(--brand-navy-700) 100%);
    color: #ffffff;
    overflow: hidden;
}

.brand-pane::before {
    /* ince nokta dokusu */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.brand-mark {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark-icon {
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.brand-mark-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.brand-mark-text small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 2px;
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.brand-copy h1 {
    font-size: 30px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 14px;
}

.brand-copy p {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

.brand-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Sağ panel: form ---------- */
.form-pane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #ffffff;
}

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

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

.login-card-header .mobile-mark {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.login-card-header .mobile-mark .brand-mark-icon {
    width: 34px;
    height: 34px;
    padding: 5px;
    background: var(--ink-100);
    box-shadow: none;
}

.login-card-header .mobile-mark span {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
}

.login-title {
    color: var(--ink-900);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.login-subtitle {
    color: var(--ink-500);
    font-size: 13.5px;
}

/* Form Group */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 7px;
    text-align: left;
}

/* Input Fields */
.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--ink-500);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    font-size: 14px;
    border: 1.5px solid var(--ink-300);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink-900);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3.5px rgba(47, 111, 235, 0.12);
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: 13.5px;
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -6px 0 20px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ink-700);
    cursor: pointer;
    user-select: none;
}

.remember-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--brand-accent);
    cursor: pointer;
}

/* Custom Dropdown */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid var(--ink-300);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-dropdown.show {
    display: block;
}

.custom-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 13.5px;
    color: var(--ink-700);
    border-bottom: 1px solid var(--ink-100);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #f3f6fd;
    color: var(--brand-accent-dark);
}

/* Alerts */
.error-message,
.warning-message {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: left;
    line-height: 1.5;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.warning-message {
    background: #fffaeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.05s ease;
    letter-spacing: 0.2px;
}

.btn-submit:hover {
    box-shadow: 0 10px 24px rgba(47, 111, 235, 0.35);
}

.btn-submit:active {
    transform: scale(0.99);
}

.login-card-footer {
    margin-top: 28px;
    font-size: 11.5px;
    color: var(--ink-500);
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .brand-pane {
        display: none;
    }

    .login-card-header .mobile-mark {
        display: flex;
    }

    .form-pane {
        padding: 32px 20px;
    }
}

@media (max-width: 767px) {
    /* iOS, yazı boyutu 16px'in ALTINDA olan bir alana odaklanınca sayfayı
       otomatik büyütüyor (kullanıcı "ekran zoom yapıyor" diye bildirdi).
       Alan yazısı 14px'ti; mobilde 16px'e çıkarılarak bu davranış
       tamamen ortadan kalkıyor. Dokunma hedefleri de büyütüldü. */
    .form-input {
        font-size: 16px;
        padding: 13px 14px 13px 42px;
    }

    .form-input::placeholder {
        font-size: 15px;
    }

    .btn-submit {
        min-height: 48px;
        font-size: 16px;
    }

    .custom-option {
        padding: 12px 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 20px;
    }
}

/* Scrollbar Styling */
.custom-dropdown::-webkit-scrollbar {
    width: 5px;
}

.custom-dropdown::-webkit-scrollbar-track {
    background: var(--ink-100);
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background: var(--ink-300);
    border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
