/* =============================================
   KARGOMGELSIN – AUTH SAYFALAR ORTAK CSS
   login_view / uyeol_view / sifremiunuttum_view
   S-3: #721777 → var(--auth-primary) ile CSS variable
============================================= */

:root {
    --auth-primary:        #721777;
    --auth-secondary:      #9c2a9c;
    --auth-dark:           #5a0f5a;
    --auth-focus-shadow:   rgba(114,23,119,0.12);
    --auth-section-border: #f0e6f0;
    --auth-info-bg:        #f6f0f6;
    --auth-info-color:     #6a4a6a;
    --auth-icon-gradient:  linear-gradient(135deg, #f0e0f0, #e8c8e8);
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

/* ── Wrapper ────────────────────────────────── */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sol marka paneli ───────────────────────── */
.auth-brand {
    width: 42%;
    background: linear-gradient(145deg, var(--auth-primary) 0%, var(--auth-secondary) 50%, var(--auth-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* uyeol'da biraz daha dar panel */
.auth-brand.auth-brand--narrow { width: 38%; }

.auth-brand::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -80px; right: -80px;
}
.auth-brand::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -60px; left: -60px;
}
.auth-brand-logo {
    width: 200px;
    margin-bottom: 36px;
    position: relative; z-index: 1;
}
.auth-brand h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    position: relative; z-index: 1;
}
.auth-brand p {
    font-size: 0.92rem;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 40px;
    position: relative; z-index: 1;
}
/* sifremiunuttum: p has no bottom margin */
.auth-brand p.auth-brand-p--nomargin { margin-bottom: 0; }

/* Özellik listesi (login + uyeol) */
.auth-features {
    list-style: none;
    padding: 0; margin: 0;
    width: 100%;
    max-width: 280px;
    position: relative; z-index: 1;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.auth-features li:last-child { border-bottom: none; }
.auth-features li i {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Marka ikon (sifremiunuttum) */
.auth-brand-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px;
    position: relative; z-index: 1;
}
.auth-brand-icon i { font-size: 2.2rem; }

/* ── Sağ form paneli ────────────────────────── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fc;
    padding: 40px 24px;
}
/* uyeol: scroll gerekebilir */
.auth-form-panel.auth-form-panel--scroll {
    align-items: flex-start;
    overflow-y: auto;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
}
.auth-card--wide { max-width: 520px; margin: auto 0; }

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.auth-card-subtitle {
    font-size: 0.88rem;
    color: #8a8fa8;
    margin-bottom: 32px;
}

/* ── İkon başlık (sifremiunuttum) ───────────── */
.auth-icon-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}
.auth-icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--auth-icon-gradient);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.auth-icon-circle i {
    font-size: 1.8rem;
    color: var(--auth-primary);
}
.auth-icon-header .auth-card-title {
    font-size: 1.4rem;
    text-align: center;
}
.auth-icon-header .auth-card-subtitle {
    text-align: center;
    line-height: 1.5;
}

/* ── Form elemanları ────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group--tight { margin-bottom: 16px; }
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a4a6a;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    display: block;
}
.input-wrapper { position: relative; }
.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b3c6;
    font-size: 1rem;
    pointer-events: none;
}
.input-wrapper .form-control { padding-left: 40px; }

.form-control {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e2e5f0;
    font-size: 0.92rem;
    color: #2d2d4e;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbff;
    width: 100%;
}
.form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-focus-shadow);
    background: #fff;
    outline: none;
}
.form-control::placeholder { color: #c5c8d9; }

/* Section başlıkları (uyeol) */
.form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--auth-secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--auth-section-border);
}

/* Sözleşme checkboxları (uyeol) */
.contract-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fafbff;
    border: 1.5px solid #e2e5f0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.contract-check:hover { border-color: var(--auth-secondary); }
.contract-check input[type="checkbox"] {
    accent-color: var(--auth-primary);
    width: 16px; height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.contract-check span {
    font-size: 0.85rem;
    color: #4a4a6a;
    line-height: 1.5;
}
.contract-check a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}
.contract-check a:hover { text-decoration: underline; }

/* Select2 özelleştirme (uyeol) */
.select2-container--default .select2-selection--single {
    height: 46px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e5f0 !important;
    background: #fafbff !important;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 40px !important;
    color: #2d2d4e !important;
    font-size: 0.92rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px var(--auth-focus-shadow) !important;
    background: #fff !important;
}
.select2-container { width: 100% !important; }
.select2-results__option--highlighted[aria-selected] {
    background-color: var(--auth-primary) !important;
}
.select2-search__field {
    border-radius: 6px !important;
    border: 1.5px solid #e2e5f0 !important;
    font-size: 0.88rem !important;
}
.select2-search__field:focus {
    border-color: var(--auth-primary) !important;
    outline: none !important;
}
.select2-flag-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b3c6;
    font-size: 1rem;
    pointer-events: none;
    z-index: 10;
}

/* ── Buton ──────────────────────────────────── */
.btn-auth {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
}
.btn-auth:hover { opacity: 0.9; }
.btn-auth:active { transform: scale(0.99); }

/* ── Remember / alt satır ───────────────────── */
.auth-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #6b6f88;
}
.auth-bottom-row a { color: var(--auth-primary); text-decoration: none; font-weight: 500; }
.auth-bottom-row a:hover { text-decoration: underline; }
.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.custom-checkbox-label input { accent-color: var(--auth-primary); width: 15px; height: 15px; }

/* ── Auth links ─────────────────────────────── */
.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: #8a8fa8;
}
.auth-links a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }
.auth-divider {
    display: inline-block;
    margin: 0 8px;
    color: #d0d3e0;
}

/* ── Alertler ───────────────────────────────── */
.alert {
    border-radius: 10px;
    font-size: 0.88rem;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: none;
}
.alert-success { background: #edfaf4; color: #1a7a4a; }
.alert-danger  { background: #fdf0f0; color: #c0392b; }
.alert i { margin-right: 6px; }

/* ── Bilgi notu (sifremiunuttum) ────────────── */
.info-box {
    background: var(--auth-info-bg);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.84rem;
    color: var(--auth-info-color);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.info-box i { color: var(--auth-secondary); margin-top: 1px; flex-shrink: 0; }

/* ── Footer ─────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.78rem;
    color: #b0b3c6;
}

/* ── Mobil logo şeridi ──────────────────────── */
.auth-mobile-header { display: none; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 767px) {
    .auth-brand { display: none; }
    .auth-form-panel {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        background: #fff;
    }
    .auth-form-panel.auth-form-panel--scroll { overflow-y: unset; }
    .auth-card {
        box-shadow: none;
        padding: 28px 20px;
        padding-bottom: calc(28px + var(--sab));
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    .auth-card--wide { padding: 24px 16px 40px; }
    .auth-mobile-header {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
        padding-top: calc(20px + var(--sat));
        padding-bottom: 24px;
        flex-shrink: 0;
    }
    .auth-mobile-header img { height: 38px; width: auto; }
    input, select, textarea { font-size: 16px !important; }
}
