/*
    Giriş ekranları ortak stili (_AuthLayout: Login, Barkod, ForgatPassword). Marka renkleri --navy* değişkenleriyle
    layout'tan ezilir. Login.Auth.min.css bu dosyadan elle üretilir (düz CSS, derleyici gerektirmez).
*/

:root {
    --navy: #073E46;
    --navy-deep: #172C31;
    --navy-soft: #DDF1ED;
    --accent: #009BA4;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --soft: #94a3b8;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --surface: #ffffff;
    --page: #F7F8F5;
    --danger: #dc2626;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-card: 0 24px 60px -32px rgba(15, 23, 42, 0.45), 0 1px 2px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--page) !important;
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-js-helpers {
    display: none;
}

/* ---------------------------------------------------------------- Yerleşim */

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* ---------------------------------------------------------------- Sol: hero */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: #ffffff;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 44, 49, 0.88) 0%, rgba(23, 44, 49, 0.55) 40%, rgba(23, 44, 49, 0.10) 75%, rgba(23, 44, 49, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 48px 56px;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-logo {
    height: 44px;
    width: auto;
    opacity: 0.96;
}

.hero-logo.is-inverted {
    filter: brightness(0) invert(1);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 7px 14px;
    backdrop-filter: blur(6px);
}

.hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #009BA4;
    box-shadow: 0 0 0 3px rgba(0, 155, 164, 0.25), 0 0 12px rgba(0, 155, 164, 0.9);
    animation: hero-pulse 2.2s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 155, 164, 0.25), 0 0 12px rgba(0, 155, 164, 0.9); }
    50% { box-shadow: 0 0 0 6px rgba(0, 155, 164, 0.08), 0 0 4px rgba(0, 155, 164, 0.5); }
}

.hero-bottom {
    max-width: 560px;
}

.hero-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #DDF1ED;
    margin-bottom: 14px;
}

.hero-title {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-copy {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.hero-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-chips li {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 13px;
    backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------------- Sağ: panel */

.panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: var(--page);
}

.panel-inner {
    width: 100%;
    max-width: 440px;
}

.panel-header {
    margin-bottom: 22px;
}

.panel-logo {
    display: none;
    height: 32px;
    width: auto;
    margin: 0 auto 20px;
}

.panel-title {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.panel-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* Adımlar */

.steps {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.step + .step::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--line-strong);
    margin: 0 12px;
}

.step-no {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    display: inline-grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface);
    transition: all 160ms ease;
}

.step.is-active {
    color: var(--navy);
}

.step.is-active .step-no {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(7, 62, 70, 0.12);
}

.step.is-done .step-no {
    background: var(--navy-soft);
    border-color: rgba(0, 155, 164, 0.35);
    color: var(--navy);
}

/* Kart */

.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

table.form-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

table.form-table td {
    padding: 0;
    vertical-align: top;
}

table.form-table td.field {
    padding-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.field-label-row .field-label {
    margin-bottom: 0;
}

.field-hint {
    margin: -2px 0 12px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
}

.password-visibility {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
}

.password-visibility:hover,
.password-visibility[aria-pressed="true"] {
    color: var(--navy);
    background: var(--navy-soft);
}

table.form-table td.messager .item-5 {
    min-height: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--danger);
}

table.form-table td.messager .item-5:not(:empty) {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

table.form-table td.messager .item-5[data-kind="ok"]:not(:empty) {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Bildirim kutusu (ör. geçersiz şifre sıfırlama bağlantısı) */

.notice {
    font-size: 13.5px;
    line-height: 1.6;
    border-radius: 12px;
    padding: 14px 16px;
}

.notice-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.link-button {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 12px;
}

.link-button:hover {
    background: var(--navy-soft);
}

/* Barkod ile giriş */

.barcode-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, var(--page) 100%);
    color: var(--navy);
    font-size: 12.5px;
    line-height: 1.5;
}

.barcode-hint svg {
    flex: 0 0 auto;
}

.barcode-hint span {
    color: var(--muted);
}

.barcode-scanline {
    fill: #ef4444;
    animation: barcode-scan 1.8s ease-in-out infinite;
}

@keyframes barcode-scan {
    0%, 100% { transform: translateY(-12px); opacity: 0.35; }
    50% { transform: translateY(12px); opacity: 1; }
}

/* Şifre kuralları (şifre sıfırlama) */

.pw-rules {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
}

.pw-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 150ms ease;
}

.pw-rules li em {
    font-style: normal;
    color: var(--soft);
}

.pw-rule-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    color: transparent;
    transition: all 150ms ease;
}

.pw-rules li.is-ok {
    color: #15803d;
}

.pw-rules li.is-ok .pw-rule-dot {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.pw-rules li.is-ok .pw-rule-dot::before {
    content: "\2713";
}

table.form-table td.options .options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 18px 2px 4px;
}

table.form-table td.links .links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.dyn {
    width: 100%;
}

.options-row .dyn,
.links-row .dyn {
    width: auto;
}

/* Alt bilgi */

.footer {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--soft);
}

.footer a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    color: var(--navy);
}

/* ---------------------------------------------------------------- DevExtreme kaplaması */

.auth .dx-widget {
    font-family: inherit;
    font-size: 14px;
}

/* Metin kutuları */

.auth .dx-texteditor {
    border: 1px solid var(--line-strong) !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    box-shadow: none !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth .dx-texteditor.dx-state-hover {
    border-color: var(--soft) !important;
}

.auth .dx-texteditor.dx-state-focused {
    border-color: var(--navy) !important;
    box-shadow: 0 0 0 3px rgba(7, 62, 70, 0.14) !important;
}

.auth .dx-texteditor.dx-invalid {
    border-color: var(--danger) !important;
}

.auth .dx-texteditor.dx-invalid.dx-state-focused {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

.auth .dx-texteditor-input {
    height: 46px;
    min-height: 46px;
    padding: 0 14px !important;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
}

.auth .dx-placeholder {
    color: var(--soft);
}

.auth .dx-placeholder::before {
    padding: 0 14px !important;
    line-height: 46px;
}

.auth .dx-texteditor-buttons-container .dx-button {
    border-radius: 8px;
}

/* Şifre kutusu (Items.js: .xWrapper > .xInput) */

.auth .item-2.xWrapper {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Firma seçici (dxLookup) */

.auth .dx-lookup {
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth .dx-lookup.dx-state-hover {
    border-color: var(--soft);
}

.auth .dx-lookup.dx-state-focused,
.auth .dx-lookup.dx-state-active {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(7, 62, 70, 0.14);
}

.auth .dx-lookup-field-wrapper {
    padding: 0;
}

.auth .dx-lookup-field {
    height: 44px;
    line-height: 44px;
    padding: 0 40px 0 14px;
    font-size: 14px;
    color: var(--ink);
}

.auth .dx-lookup-arrow {
    right: 14px;
    height: 44px;
    color: var(--muted);
}

/* Doğrulama mesajı */

.auth .dx-invalid-message > .dx-overlay-content {
    background: var(--danger);
    border-radius: 8px;
    font-size: 12px;
    padding: 6px 10px;
    box-shadow: 0 8px 20px -10px rgba(220, 38, 38, 0.6);
}

/* Butonlar */

.auth .dx-button {
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    box-shadow: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, filter 150ms ease;
}

.auth .dx-button .dx-button-text {
    font-size: 14px;
    letter-spacing: 0.01em;
}

.auth .item-3.dx-button,
.auth .item-6.dx-button,
.auth .item-7.dx-button {
    width: 100%;
    height: 46px;
    border: 0;
    background: linear-gradient(135deg, #009BA4 0%, var(--navy) 60%, #172C31 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(7, 62, 70, 0.7) !important;
}

.auth .item-3.dx-button .dx-button-text,
.auth .item-6.dx-button .dx-button-text,
.auth .item-7.dx-button .dx-button-text {
    color: #ffffff;
    font-size: 14.5px;
}

.auth .item-3.dx-button.dx-state-hover,
.auth .item-6.dx-button.dx-state-hover,
.auth .item-7.dx-button.dx-state-hover {
    filter: brightness(1.08);
}

.auth .item-3.dx-button.dx-state-active,
.auth .item-6.dx-button.dx-state-active,
.auth .item-7.dx-button.dx-state-active {
    filter: brightness(0.94);
}

.auth .item-3.dx-button.dx-state-focused,
.auth .item-6.dx-button.dx-state-focused,
.auth .item-7.dx-button.dx-state-focused {
    box-shadow: 0 0 0 3px rgba(7, 62, 70, 0.22) !important;
}

.auth .item-3.dx-button .dx-button-content,
.auth .item-6.dx-button .dx-button-content,
.auth .item-7.dx-button .dx-button-content {
    padding: 0 16px;
    line-height: 46px;
}

.auth .item-12.dx-button {
    border: 0;
    background: transparent;
    color: var(--navy);
}

.auth .item-12.dx-button .dx-button-text {
    color: var(--navy);
    font-size: 13px;
}

.auth .item-12.dx-button.dx-state-hover {
    background: var(--navy-soft);
}

.auth .item-13.dx-button {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
}

.auth .item-13.dx-button .dx-button-text {
    color: var(--text);
    font-size: 13px;
}

.auth .item-13.dx-button.dx-state-hover {
    border-color: var(--navy);
    background: var(--navy-soft);
    color: var(--navy);
}

.auth .item-13.dx-button.dx-state-hover .dx-button-text {
    color: var(--navy);
}

.auth .item-12.dx-button .dx-button-content,
.auth .item-13.dx-button .dx-button-content {
    padding: 0 14px;
    line-height: 34px;
}

/* Onay kutuları */

.auth .dx-checkbox {
    white-space: nowrap;
}

.auth .dx-checkbox-container {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.auth .dx-checkbox-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--soft);
    background: var(--surface);
    font-size: 11px;
    line-height: 15px;
    transition: all 120ms ease;
}

.auth .dx-checkbox.dx-state-hover .dx-checkbox-icon {
    border-color: var(--navy);
}

.auth .dx-checkbox.dx-state-focused .dx-checkbox-icon {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(7, 62, 70, 0.14);
}

.auth .dx-checkbox-checked .dx-checkbox-icon {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.auth .dx-checkbox-text {
    font-size: 13px;
    color: var(--text);
    margin-left: 0;
    padding-left: 8px;
    line-height: 18px;
    vertical-align: middle;
    white-space: nowrap;
}

.auth .dx-checkbox-checked .dx-checkbox-icon {
    font-size: 14px;
    line-height: 14px;
}

.auth .dx-checkbox-checked .dx-checkbox-icon::before {
    width: 14px;
    margin-top: -7px;
    margin-left: -7px;
}

/* Firma seçici açılır listesi ve diyaloglar (body altına render edilir) */

.dx-lookup-popup-wrapper .dx-overlay-content,
.dx-dropdowneditor-overlay .dx-overlay-content,
.dx-dialog .dx-overlay-content {
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.45);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.dx-lookup-popup-wrapper .dx-popup-title {
    display: none;
}

/* Not: popup-content / search-wrapper iç boşluklarına dokunma; DevExtreme liste yüksekliğini
   bunlardan hesaplıyor ve ek boşluk satırları gizliyor. */

.dx-lookup-popup-wrapper .dx-lookup-search-wrapper .dx-texteditor {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
}

.dx-lookup-popup-wrapper .dx-lookup-search-wrapper .dx-texteditor.dx-state-focused {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(7, 62, 70, 0.14);
}

.dx-lookup-popup-wrapper .dx-list-item,
.dx-dropdowneditor-overlay .dx-list-item {
    font-size: 14px;
    color: var(--text);
}

.dx-lookup-popup-wrapper .dx-list-item.dx-state-hover,
.dx-dropdowneditor-overlay .dx-list-item.dx-state-hover {
    background: var(--page);
}

.dx-lookup-popup-wrapper .dx-list-item.dx-list-item-selected,
.dx-lookup-popup-wrapper .dx-list-item.dx-state-active,
.dx-lookup-popup-wrapper .dx-list-item.dx-state-focused,
.dx-dropdowneditor-overlay .dx-list-item.dx-list-item-selected,
.dx-dropdowneditor-overlay .dx-list-item.dx-state-active,
.dx-dropdowneditor-overlay .dx-list-item.dx-state-focused {
    background: var(--navy-soft) !important;
    color: var(--navy) !important;
}

.dx-lookup-popup-wrapper .dx-popup-bottom .dx-button,
.dx-dialog .dx-button {
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    font-family: inherit;
    font-weight: 600;
    box-shadow: none;
}

.dx-dialog .dx-popup-title {
    font-family: inherit;
    font-weight: 600;
    color: var(--ink);
}

.dx-dialog .dx-dialog-message {
    font-family: inherit;
    color: var(--text);
}

/* Yükleniyor paneli */

.dx-loadpanel-content {
    border-radius: 14px;
}

/* ---------------------------------------------------------------- Duyarlı */

@media (max-width: 1100px) {
    .hero-content {
        padding: 40px;
    }

    .hero-title {
        font-size: 34px;
    }
}

@media (max-width: 960px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .hero {
        display: none;
    }

    .panel {
        padding: 32px 20px;
        min-height: 100vh;
    }

    .panel-logo {
        display: block;
    }

    .panel-header {
        text-align: center;
    }

    .steps {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .panel {
        padding: 24px 14px;
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .panel-title {
        font-size: 22px;
    }

    .step + .step::before {
        width: 14px;
        margin: 0 8px;
    }

    .step-label {
        display: none;
    }

    .step.is-active .step-label {
        display: inline;
    }

    table.form-table td.links .links-row {
        flex-direction: column;
        align-items: stretch;
    }

    .options-row .dyn,
    .links-row .dyn {
        width: 100%;
    }

    .auth .item-12.dx-button,
    .auth .item-13.dx-button {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
