﻿/*
 * ═══════════════════════════════════════════════════════════════
 *  login-shared.css
 *  _LoginLayout.cshtml içine <link> veya <style> olarak eklenecek
 *  ortak stiller — tüm auth sayfalarında geçerlidir.
 * ═══════════════════════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── RESET ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: #f4f5f7 !important;
}

/* ─── LAYOUT ─── */
.lp-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}


.lp-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 620px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 20px 60px -8px rgba(0,0,0,0.12);
}

/* ─── SOL PANEL ─── */
/*
 * Not: Login.cshtml ve LoginKontrol.cshtml'de sol panel 42%,
 *      diğer sayfalarda 46%'dır. Varsayılan 46% olarak ayarlandı.
 *      Login ve LoginKontrol kendi <style> bloklarında override eder.
 */
.lp-left {
    width: 46%;
    background: #0f1520;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.lp-left-circle-top {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgb(191 151 62);
    pointer-events: none;
}

.lp-left-circle-bot {
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(198, 156, 66, 0.05);
    pointer-events: none;
}

/* Logo */
.lp-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.lp-logo-img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* İllüstrasyon alanı (Login ve LoginKontrol dışında kullanılır) */
.lp-illustration {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 4px 0 16px;
}

/* Hero metni */
/*
 * Not: Login ve LoginKontrol'de h2 23px, diğer sayfalarda 18px.
 *      Varsayılan 18px, Login/LoginKontrol kendi bloklarında override eder.
 */
.lp-hero {
    position: relative;
    z-index: 1;
}

    .lp-hero h2 {
        color: white;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: -0.3px;
        margin: 0 0 6px 0;
    }

    .lp-hero p {
        color: rgba(255, 255, 255, 0.4);
        font-size: 13px;
        line-height: 1.7;
        margin: 0;
    }

/*
 * Feature listesi (sadece Login.cshtml ve LoginKontrol.cshtml sol panelinde
 * kullanılır; buraya ortak taşındı çünkü class adları aynı).
 */
.lp-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.lp-feat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgb(191 151 62);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .lp-feat-icon svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: #ecedee;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.lp-feat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
}

/* Holding alanı */
/*
 * Not: border-top yalnızca Login, LoginKontrol ve ResetPassword'da var.
 *      Bu üç sayfa kendi bloklarında ekler.
 */
.lp-holding {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
}

.lp-holding-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.9;
    flex-shrink: 0;
}

.lp-holding-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp-holding-name {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.lp-holding-sub {
    color: rgba(255,255,255,0.45);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* ─── SAĞ PANEL ─── */
.lp-right {
    flex: 1;
    background: #ffffff;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*
 * Badge yapısı ortaktır; renk (background / color / dot rengi) sayfaya özgüdür.
 * Her sayfa kendi <style> bloğunda sadece renk override'ını tanımlar.
 */
.lp-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 22px;
    width: fit-content;
}

    .lp-welcome-badge::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        flex-shrink: 0;
    }

.lp-title {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.6px;
    margin: 0 0 6px 0;
}

.lp-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* ─── FORM ─── */
.lp-field {
    margin-bottom: 20px;
}

.lp-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #374151;
    text-transform: uppercase;
    margin-bottom: 7px;
}

/* Tekli input sarmalayıcı (şifreli alanlar, sicil no vb.) */
.lp-input-wrap {
    position: relative;
}

.lp-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

    .lp-input::-webkit-outer-spin-button,
    .lp-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    .lp-input:focus {
        border-color: #3b82f6;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .lp-input::placeholder {
        color: #9ca3af;
        font-weight: 300;
    }

    .lp-input.is-invalid {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
    }

/* Toggle butonu olan input'lara ek sağ padding */
.lp-input-pw {
    padding-right: 44px;
}

/* Parola göster/gizle butonu */
.lp-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    color: #9ca3af;
    transition: color 0.15s;
}

    .lp-pw-toggle:hover {
        color: #374151;
    }

    .lp-pw-toggle svg {
        width: 18px;
        height: 18px;
    }

/* Prefix'li input grubu (telefon no alanları) */
.lp-input-group {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .lp-input-group:focus-within {
        border-color: #3b82f6;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .lp-input-group.is-invalid {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
    }

.lp-input-prefix {
    padding: 11px 14px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13.5px;
    font-weight: 500;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* lp-input-group içinde border/background sıfırlanır */
.lp-input-group .lp-input {
    border: none;
    background: transparent;
    border-radius: 0;
}

/* ─── BUTONLAR ─── */
/*
 * Not: Login ve LoginKontrol primary button'ı #0f1520 (koyu) kullanır.
 *      Diğerleri #1a2744. Varsayılan #1a2744, override için Login bloğuna bakın.
 */
.lp-btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: #1a2744;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    letter-spacing: -0.2px;
    transition: background 0.15s, transform 0.1s;
    margin-bottom: 14px;
    display: block;
    text-align: center;
    text-decoration: none;
}

    .lp-btn-primary:hover {
        background: #233366;
        color: white;
        text-decoration: none;
    }

    .lp-btn-primary:active {
        transform: scale(0.99);
    }

    .lp-btn-primary:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        transform: none;
    }

/* Geri dön linki */
.lp-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

    .lp-back-link:hover {
        color: #1a2744;
        text-decoration: none;
    }

    .lp-back-link svg {
        width: 16px;
        height: 16px;
    }

/* ─── ALERT ─── */
.lp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.5;
}

    .lp-alert.is-error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
    }

    .lp-alert.is-success {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #166534;
    }

/* Login.cshtml'in eski class adı — ileride is-success ile birleştirin */
.lp-alert-success {
    background: #f0fdf4;
    border: 0.5px solid #bbf7d0;
    color: #166534;
}

.lp-alert svg, .lp-alert-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── VALIDATION ─── */
.lp-validation-msg {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    display: block;
}

/* ─── FOOTER ─── */
.lp-footer {
    margin-top: auto;
    padding-top: 24px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .lp-page {
        padding: 0;
        align-items: flex-start;
        background: #ffffff !important;
    }

    .lp-card {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .lp-left {
        width: 100%;
        min-height: auto;
        padding: 20px 24px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .lp-logo {
        justify-content: flex-start;
    }

    .lp-logo-img {
        height: 32px;
    }

    .lp-illustration,
    .lp-hero,
    .lp-features,
    .lp-holding,
    .lp-left-circle-top,
    .lp-left-circle-bot {
        display: none;
    }

    .lp-right {
        flex: 1;
        padding: 32px 24px 24px;
        justify-content: flex-start;
    }

    .lp-title {
        font-size: 22px;
    }

    .lp-subtitle {
        margin-bottom: 24px;
    }
}
