@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   JEBA DANIŞMANLIK – Auth Sayfaları CSS  (yeniden tasarlandı)
   Renk paleti: Logo'dan alınan koyu teal/navy tonları
   ============================================================ */

:root {
    --jeba-dark:     #0d2d45;
    --jeba-mid:      #1a4a6b;
    --jeba-teal:     #1e7fad;
    --jeba-light:    #e8f4fa;

    --primary:       #1e7fad;
    --primary-dark:  #155e80;
    --primary-light: #e8f4fa;

    --success:       #16a34a;
    --danger:        #dc2626;
    --warning:       #d97706;
    --info:          #0891b2;

    --text:          #1e293b;
    --text-muted:    #64748b;
    --border:        #d1e8f0;
    --bg:            #f4f8fb;
    --white:         #ffffff;
    --radius:        12px;
    --shadow:        0 8px 32px rgba(13,45,69,.12);
    --transition:    .25s ease;
}

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

body {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SPLIT-SCREEN AUTH LAYOUT
   ═══════════════════════════════════════════════════════════ */
.auth-body {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: stretch;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* ── Sol: Marka Paneli ─────────────────────────────────── */
.auth-brand-panel {
    background: linear-gradient(160deg, var(--jeba-dark) 0%, var(--jeba-mid) 55%, var(--jeba-teal) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}

/* Arka plan resmi varsa */
.auth-brand-panel.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.auth-brand-panel.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,25,50,.72) 0%, rgba(20,60,100,.58) 55%, rgba(10,90,100,.50) 100%);
    z-index: 0;
}
.auth-brand-panel.has-bg-image > * {
    position: relative;
    z-index: 1;
}

.auth-brand-panel:not(.has-bg-image)::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -80px; right: -80px;
}
.auth-brand-panel:not(.has-bg-image)::after {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    bottom: 80px; left: -60px;
}

.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.auth-brand__logo img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.auth-brand__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.auth-brand__headline {
    font-size: 34px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.auth-brand__headline em {
    font-style: normal;
    color: rgba(255,255,255,.55);
}

.auth-brand__desc {
    font-size: 15px;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    max-width: 320px;
}

.auth-brand__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
    position: relative;
    z-index: 1;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}

.auth-feature__icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-brand__footer {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.4);
    font-size: 12px;
}
.auth-brand__footer a { color: rgba(255,255,255,.58); text-decoration: none; }
.auth-brand__footer a:hover { text-decoration: underline; }

/* ── Sağ: Form Paneli ─────────────────────────────────── */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 60px;
    background: var(--white);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color var(--transition);
}
.auth-back-link:hover { color: var(--primary); }

.auth-card__header { margin-bottom: 28px; }

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: .3px;
}

.auth-card__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.auth-card__subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* ── Form Elemanları ─────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.form-label__link {
    font-weight: 400;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}
.form-label__link:hover { text-decoration: underline; }

.req { color: var(--danger); margin-left: 2px; }

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: #fafcfe;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,127,173,.14);
}

.form-input.is-invalid,
.form-select.is-invalid { border-color: var(--danger); }

.form-input::placeholder { color: #a0b4c0; }

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}
.form-hint--error { color: var(--danger); }

/* ── Şifre Göster ────────────────────────────────────── */
.input-eye { position: relative; }
.input-eye .form-input { padding-right: 44px; }
.input-eye__btn {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 16px; padding: 4px; line-height: 1;
    opacity: .5; transition: opacity var(--transition);
    color: var(--text-muted);
}
.input-eye__btn:hover { opacity: 1; }

/* ── Butonlar ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--jeba-mid), var(--jeba-teal));
    color: var(--white);
    border-color: transparent;
}
.btn--primary:hover {
    background: linear-gradient(135deg, var(--jeba-dark), var(--jeba-mid));
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30,127,173,.35);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary-light); }

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}
.btn--ghost:hover { background: var(--bg); }

.btn--full { width: 100%; }
.btn--lg { padding: 14px 24px; font-size: 15px; margin-top: 4px; border-radius: 14px; }
.btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ── Login Tipi Seçici ───────────────────────────────── */
.login-type-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}

.login-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fafcfe;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    text-align: center;
}

.login-type-btn:hover {
    border-color: var(--jeba-teal);
    background: var(--primary-light);
    color: var(--primary);
}

.login-type-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,127,173,.1);
}

.login-type-btn__icon { font-size: 28px; line-height: 1; }
.login-type-btn__label { font-size: 13px; }

input[name="role"] { display: none; }

/* ── Checkbox ────────────────────────────────────────── */
.form-check { margin-top: 8px; }

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.check-label input[type="checkbox"] {
    width: 16px; height: 16px;
    flex-shrink: 0; margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.check-label--inline {
    display: inline-flex;
    margin-right: 12px;
    margin-bottom: 8px;
}

/* ── Kategori Seçimi ─────────────────────────────────── */
.category-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.category-checks .check-label--inline {
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    transition: all var(--transition);
    margin: 0;
}

.category-checks .check-label--inline:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ── Ayraç ───────────────────────────────────────────── */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 12px;
}

/* ── Switch Links ────────────────────────────────────── */
.auth-links { display: flex; flex-direction: column; gap: 10px; }

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* ── Hatalar ─────────────────────────────────────────── */
.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 18px;
}
.form-error { font-size: 13px; color: var(--danger); margin-bottom: 4px; }
.form-error:last-child { margin-bottom: 0; }

/* ── Flash ───────────────────────────────────────────── */
.flash-container {
    position: fixed; top: 20px; right: 20px;
    z-index: 9999; display: flex; flex-direction: column;
    gap: 10px; max-width: 360px;
}
.flash {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 16px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.12);
    animation: slideIn .3s ease;
}
@keyframes slideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.flash--success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.flash--error   { background: #fef2f2; color: var(--danger);  border: 1px solid #fecaca; }
.flash--warning { background: #fffbeb; color: var(--warning); border: 1px solid #fde68a; }
.flash--info    { background: #f0f9ff; color: var(--info);    border: 1px solid #bae6fd; }
.flash__close {
    background: none; border: none; font-size: 18px;
    cursor: pointer; opacity: .6; padding: 0; line-height: 1; flex-shrink: 0;
}
.flash__close:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .auth-wrapper { grid-template-columns: 1fr; }

    .auth-brand-panel {
        min-height: 200px;
        padding: 28px 28px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .auth-brand__content,
    .auth-brand__features { display: none; }

    .auth-brand__footer { display: none; }

    .auth-form-panel { padding: 36px 28px; }
    .auth-back-link { display: none; }
}

@media (max-width: 480px) {
    .auth-brand-panel { min-height: 80px; padding: 16px 20px; }
    .auth-form-panel { padding: 24px 16px; }
    .login-type-switcher { gap: 8px; }
    .login-type-btn { padding: 12px 8px; }
    .auth-card__title { font-size: 22px; }
    .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ROL SEKMELERİ (Login)
   ═══════════════════════════════════════════════════════════ */
.login-role-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 26px;
    background: var(--bg);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.login-role-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.login-role-tab:hover {
    color: var(--primary);
    background: rgba(30,127,173,.06);
}

.login-role-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ═══════════════════════════════════════════════════════════
   ADIM WIZARD (Step Progress)
   ═══════════════════════════════════════════════════════════ */
.step-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: var(--border);
    transition: background .4s;
}

.step-item.done:not(:last-child)::after,
.step-item.active:not(:last-child)::after {
    background: var(--primary);
}

.step-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    transition: all .3s;
    z-index: 1;
}

.step-item.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(30,127,173,.15);
}

.step-item.done .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.step-label {
    font-size: 11px; font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    transition: color .3s;
}

.step-item.active .step-label,
.step-item.done .step-label {
    color: var(--primary);
}

/* Step Panels */
.step-panel { display: none; }
.step-panel.active { display: block; animation: stepFadeUp .3s ease; }

@keyframes stepFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Step Navigation */
.step-nav {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.step-nav .btn { flex: 1; }

/* ═══════════════════════════════════════════════════════════
   SERVİS CHECKBOX GRID
   ═══════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.service-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: border-color var(--transition), background var(--transition);
}

.service-check:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.service-check:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.service-check input {
    accent-color: var(--primary);
    width: 15px; height: 15px;
}

.service-check i {
    color: var(--primary) !important;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   FORM ROW 3 KOLON
   ═══════════════════════════════════════════════════════════ */
.form-row--3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   AUTH CARD FOOTER
   ═══════════════════════════════════════════════════════════ */
.auth-card__footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}
.auth-card__footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-card__footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   ROLE TABS (forgot.php radio butonları)
   ═══════════════════════════════════════════════════════════ */
.role-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.role-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    background: var(--bg);
    min-width: 80px;
}

.role-tab input { display: none; }

.role-tab:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.role-tab:hover {
    border-color: var(--jeba-teal);
    background: var(--primary-light);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   FORM SELECT – ok ikonu
   ═══════════════════════════════════════════════════════════ */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ═══════════════════════════════════════════════════════════
   TEXTAREA
   ═══════════════════════════════════════════════════════════ */
.form-textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}