:root {
    --wp-red: #C8102E;
    --wp-red-dark: #A3131D;
    --wp-red-hover: #9C0C24;
    --wp-ink: #1A1A1A;
    --wp-ink-soft: #2D2D2D;
    --wp-line: #E5E5E5;
    --wp-muted: #6B6B6B;
    --wp-bg: #F7F7F7;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--wp-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

@media (max-width: 991.98px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none !important; }
}

/* ============ LEFT: Brand panel ============ */
.login-brand {
    position: relative;
    background: var(--wp-ink);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.brand-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.brand-video-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(200, 16, 46, 0.20) 0%, rgba(200, 16, 46, 0) 55%),
        linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0.78) 100%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025) 0 1px,
            transparent 1px 14px
        );
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo .mark {
    width: 44px;
    height: 44px;
    background: var(--wp-red);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.brand-logo .wordmark {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-headline {
    margin-top: auto;
    padding-top: 48px;
}

.brand-headline .eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wp-red);
    margin-bottom: 18px;
    display: inline-block;
}

.brand-headline h1 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 18px;
    max-width: 18ch;
}

.brand-headline p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.65;
    max-width: 42ch;
    margin: 0 0 36px;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.brand-features .dot {
    width: 6px;
    height: 6px;
    background: var(--wp-red);
    flex-shrink: 0;
}

.brand-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* ============ RIGHT: Form panel ============ */
.login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #fff;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-form .form-mobile-logo {
    display: none;
    margin-bottom: 32px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .login-form .form-mobile-logo { display: block; }
    .login-form-wrap { padding: 32px 20px; }
}

.login-form .form-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--wp-ink);
    margin: 0 0 6px;
}

.login-form .form-subtitle {
    font-size: 14px;
    color: var(--wp-muted);
    margin: 0 0 36px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--wp-ink-soft);
    margin-bottom: 8px;
}

.field-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--wp-line);
    background: #fff;
    color: var(--wp-ink);
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
    border-radius: 0;
}

.field-input:focus {
    outline: none;
    border-color: var(--wp-ink);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.field-input.is-invalid {
    border-color: var(--wp-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.10);
}

.field-group {
    margin-bottom: 22px;
}

.field-password {
    position: relative;
}

.field-password .field-input {
    padding-right: 48px;
}

.field-password .toggle-pass {
    position: absolute;
    right: 0;
    top: 0;
    height: 48px;
    width: 48px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: var(--wp-muted);
    cursor: pointer;
    transition: color .15s;
}

.field-password .toggle-pass:hover { color: var(--wp-ink); }

.field-password .toggle-pass svg { width: 18px; height: 18px; }

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13px;
}

.field-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: pointer;
    color: var(--wp-ink-soft);
}

.field-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--wp-line);
    background: #fff;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.field-check input:checked {
    background: var(--wp-ink);
    border-color: var(--wp-ink);
}

.field-check input:checked::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #fff;
    clip-path: polygon(14% 47%, 0 60%, 41% 100%, 100% 25%, 84% 12%, 41% 73%);
}

.btn-submit {
    width: 100%;
    height: 50px;
    background: var(--wp-red);
    color: #fff;
    border: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background .15s, transform .05s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 0;
}

.btn-submit:hover:not(:disabled) { background: var(--wp-red-hover); }
.btn-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.65; cursor: wait; }

.btn-submit .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .7s linear infinite;
    display: none;
}

.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading .label { opacity: 0.85; }

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.form-foot {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--wp-line);
    text-align: center;
    font-size: 12px;
    color: var(--wp-muted);
}

.form-foot a {
    color: var(--wp-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--wp-line);
}

.form-foot a:hover { border-color: var(--wp-ink); }

/* ============ Toast (inline, no library) ============ */
.wp-toast-host {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.wp-toast {
    background: var(--wp-ink);
    color: #fff;
    padding: 14px 18px;
    font-size: 14px;
    min-width: 260px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid var(--wp-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(20px);
    opacity: 0;
    transition: transform .25s, opacity .25s;
    pointer-events: auto;
}

.wp-toast.show { transform: none; opacity: 1; }
.wp-toast.success { border-left-color: #1da851; }
.wp-toast.danger { border-left-color: var(--wp-red); }
.wp-toast.warning { border-left-color: #d97706; }

.wp-toast .ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ KVKK modal tweaks ============ */
.modal-content { border-radius: 0; border: 0; }
.modal-header { border-radius: 0; border-bottom: 1px solid var(--wp-line); }
