:root {
    --bg: #0a0e10;
    --bg-soft: #121719;
    --panel: rgba(23, 28, 31, 0.9);
    --panel-border: rgba(115, 135, 136, 0.16);
    --grid: rgba(107, 130, 132, 0.08);
    --text: #f4f5f6;
    --muted: #a3acae;
    --accent: #8ed7d0;
    --accent-strong: #66b9b0;
    --danger: #9e3833;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    --ui-scale: 0.8;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-size: 14px;
    background:
        radial-gradient(circle at top left, rgba(116, 171, 166, 0.09), transparent 28%),
        linear-gradient(180deg, #111618 0%, #090d0f 100%);
    color: var(--text);
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

.page-shell {
    height: calc(100vh / var(--ui-scale));
    padding: 8px;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px;
    width: calc(100% / var(--ui-scale));
    min-height: 0;
    max-height: calc(100vh / var(--ui-scale));
    transform: scale(var(--ui-scale));
    transform-origin: top left;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.topbar,
.page-footer {
    border: 1px solid var(--panel-border);
    background: rgba(16, 20, 22, 0.88);
    backdrop-filter: blur(12px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: none;
}

.brand,
.footer-brand {
    color: var(--accent);
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.locale-switch {
    display: flex;
    align-items: center;
    gap: 14px;
}

.locale {
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: #dde2e3;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.8;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.locale.active {
    color: var(--accent);
    opacity: 1;
    border-color: rgba(142, 215, 208, 0.35);
    background: rgba(142, 215, 208, 0.08);
}

.locale-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: 0 0 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.locale-flag-en {
    background:
        linear-gradient(180deg, #b22234 0 14.28%, #ffffff 14.28% 28.56%, #b22234 28.56% 42.84%, #ffffff 42.84% 57.12%, #b22234 57.12% 71.4%, #ffffff 71.4% 85.68%, #b22234 85.68% 100%);
    position: relative;
}

.locale-flag-en::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 10px;
    background: #3c3b6e;
}

.locale-flag-tr {
    position: relative;
    background: #e30a17;
}

.locale-flag-tr::before,
.locale-flag-tr::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.locale-flag-tr::before {
    width: 9px;
    height: 9px;
    top: 4px;
    left: 4px;
    background: #ffffff;
}

.locale-flag-tr::after {
    width: 7px;
    height: 7px;
    top: 5px;
    left: 6px;
    background: #e30a17;
}

.main-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    min-height: 0;
    height: 100%;
    border: 1px solid var(--panel-border);
    border-top: none;
    border-bottom: none;
}

.hero-panel,
.auth-panel {
    padding: 40px clamp(20px, 3vw, 56px);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(6, 10, 12, 0.2), rgba(6, 10, 12, 0.65)),
        radial-gradient(circle at top right, rgba(82, 138, 134, 0.15), transparent 26%);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(104, 124, 126, 0.08);
    pointer-events: none;
}

.eyebrow,
.hero-footer,
.footer-copy {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eyebrow {
    margin: 0 0 18px;
    color: #9fb8b6;
    font-size: 0.8rem;
}

.hero-copy h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h1 span {
    display: block;
    color: var(--accent);
}

.hero-text {
    max-width: 560px;
    margin: 28px 0 0;
    color: #c8d0d1;
    font-size: 1.25rem;
    line-height: 1.6;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 620px;
    margin-top: 48px;
}

.module-card,
.auth-card {
    background: rgba(18, 23, 25, 0.78);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.module-card {
    padding: 26px 22px;
}

.module-visual {
    position: relative;
    height: 150px;
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(142, 215, 208, 0.12);
}

.ticket-visual {
    background:
        radial-gradient(circle at 20% 20%, rgba(142, 215, 208, 0.28), transparent 34%),
        linear-gradient(135deg, rgba(23, 70, 68, 0.92), rgba(12, 26, 28, 0.98));
}

.document-visual {
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 220, 157, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(37, 47, 61, 0.95), rgba(16, 21, 28, 0.98));
}

.visual-window {
    position: absolute;
    top: 24px;
    left: 22px;
    right: 22px;
    height: 86px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(231, 245, 244, 0.08);
    border: 1px solid rgba(231, 245, 244, 0.18);
}

.visual-line {
    display: block;
    height: 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.visual-line-wide {
    width: 78%;
}

.visual-line-short {
    width: 42%;
}

.visual-badge {
    position: absolute;
    right: 20px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(142, 215, 208, 0.22);
    color: #dff9f6;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.document-stack {
    position: absolute;
    top: 22px;
    left: 28px;
    width: 92px;
    height: 104px;
}

.document-stack span {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(214, 222, 229, 0.88));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.document-stack span:nth-child(1) {
    transform: rotate(-8deg) translate(-8px, 8px);
    opacity: 0.6;
}

.document-stack span:nth-child(2) {
    transform: rotate(-2deg) translate(2px, 4px);
    opacity: 0.8;
}

.document-stack span:nth-child(3)::before,
.document-stack span:nth-child(3)::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    height: 8px;
    border-radius: 999px;
    background: rgba(89, 104, 122, 0.34);
}

.document-stack span:nth-child(3)::before {
    top: 24px;
}

.document-stack span:nth-child(3)::after {
    top: 40px;
}

.document-seal {
    position: absolute;
    right: 26px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe0a8, #b98932);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.module-card h2 {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.module-card p {
    margin: 0;
    color: #adb7b9;
    line-height: 1.65;
    font-size: 1.05rem;
}

.hero-footer {
    margin-top: 70px;
    color: #b7c6c7;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(14, 18, 20, 0.78), rgba(12, 16, 18, 0.96));
}

.auth-card {
    width: min(100%, 520px);
    padding: 34px 28px 28px;
    border-radius: 16px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    letter-spacing: -0.06em;
}

.auth-header p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.primary-button {
    width: 100%;
    border-radius: 8px;
    min-height: 58px;
    border: 1px solid rgba(164, 181, 183, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
}

.primary-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-error {
    border: 1px solid rgba(158, 56, 51, 0.34);
    background: rgba(158, 56, 51, 0.14);
    color: #ffbeb8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.field {
    display: grid;
    gap: 9px;
}

.field > span,
.remember-row,
.field-link {
    font-size: 0.95rem;
}

.field span:first-child {
    color: #d7ddde;
    font-weight: 500;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-link {
    color: var(--accent);
}

.field input {
    width: 100%;
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid rgba(167, 184, 185, 0.14);
    background: rgba(33, 38, 40, 0.85);
    color: var(--text);
    padding: 0 16px;
    outline: none;
}

.field input::placeholder {
    color: #707a7c;
}

.field input:focus {
    border-color: rgba(142, 215, 208, 0.72);
    box-shadow: 0 0 0 4px rgba(142, 215, 208, 0.12);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c4cbcc;
}

.remember-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-strong);
}

.primary-button {
    margin-top: 4px;
    background: linear-gradient(180deg, #5da79f 0%, #5aa39c 100%);
    color: #f8fbfb;
    font-size: 1.15rem;
    font-weight: 700;
}

.page-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
}

.footer-brand {
    color: #e7eaeb;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.footer-copy {
    color: #98a4a6;
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        border-right: none;
        border-bottom: 1px solid var(--panel-border);
    }

    .page-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

}

@media (max-width: 720px) {
    .page-shell {
        padding: 0;
    }

    .topbar,
    .main-layout,
    .page-footer {
        border-left: none;
        border-right: none;
    }

    .topbar {
        padding: 18px 16px;
    }

    .brand {
        font-size: 1.8rem;
    }

    .hero-panel,
    .auth-panel {
        padding: 28px 16px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .module-grid {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .auth-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .auth-header h2 {
        font-size: 2.5rem;
    }

    .page-footer {
        padding: 18px 16px 26px;
    }
}
