/* themes/split_screen.css
 * Sol marka paneli + sağ form. Stripe/Linear/Notion tarzı modern SaaS.
 * Mobile breakpoint'inde tek kolona düşer.
 */

*, *::before, *::after { box-sizing: border-box; }

.wmg-body {
    margin: 0;
    font-family: var(--wmg-font, system-ui), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ Container ============ */
.wmg-split {
    display: flex;
    min-height: 100vh;
}

/* ============ SOL: Marka paneli ============ */
.wmg-split__brand {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    color: #fff;
    overflow: hidden;
    /* fallback: primary'den gradient */
    background:
        radial-gradient(ellipse at top left,
            color-mix(in srgb, var(--wmg-primary) 90%, white) 0%,
            transparent 60%),
        linear-gradient(135deg,
            var(--wmg-primary, #1976d2) 0%,
            color-mix(in srgb, var(--wmg-primary) 65%, var(--wmg-accent, #000)) 100%);
}

.wmg-split__brand--bg {
    background-image: var(--bg-img); /* JS yok, inline style ile gelir */
    background-size: var(--wmg-bg-position, cover);
    background-position: center;
    background-repeat: no-repeat;
}

.wmg-split__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--wmg-primary) 75%, transparent) 0%,
        color-mix(in srgb, var(--wmg-primary) 55%, black) 100%);
    backdrop-filter: blur(var(--wmg-bg-blur, 0));
    -webkit-backdrop-filter: blur(var(--wmg-bg-blur, 0));
    pointer-events: none;
}

.wmg-split__brand:not(.wmg-split__brand--bg) .wmg-split__overlay {
    display: none;
}

.wmg-split__brand-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 100vh;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

/* --- Head: logo + brand name --- */
.wmg-split__brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wmg-split__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    padding: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wmg-split__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 0;
}

.wmg-split__brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.01em;
}

/* --- Hero: welcome text --- */
.wmg-split__brand-hero {
    max-width: 420px;
}

.wmg-split__hero-title {
    margin: 0 0 16px 0;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.wmg-split__hero-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
    max-width: 380px;
}

/* --- Foot: destek bilgisi --- */
.wmg-split__brand-foot { margin-top: auto; }

.wmg-split__support {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
}

.wmg-split__support-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wmg-split__support-row svg {
    width: 16px;
    height: 16px;
    opacity: .75;
    flex-shrink: 0;
}

.wmg-split__support a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    transition: border-color .15s;
}

.wmg-split__support a:hover {
    border-bottom-color: rgba(255, 255, 255, .6);
}

/* ============ SAĞ: Form paneli ============ */
.wmg-split__form-side {
    flex: 1 1 50%;
    min-width: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    position: relative;
}

.wmg-split__form-wrap {
    width: 100%;
    max-width: 380px;
}

.wmg-split__form-head { margin-bottom: 32px; }

.wmg-split__title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #111827;
}

.wmg-split__subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.wmg-split__domain-badge {
    display: inline-block;
    padding: 2px 8px;
    background: color-mix(in srgb, var(--wmg-primary) 8%, white);
    color: var(--wmg-primary);
    border-radius: 5px;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid color-mix(in srgb, var(--wmg-primary) 18%, white);
}

/* --- Field --- */
.wmg-fld {
    margin-bottom: 18px;
}

.wmg-fld__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.wmg-fld__input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.wmg-fld__input-wrap:hover {
    border-color: #9ca3af;
}

.wmg-fld__input-wrap:focus-within {
    border-color: var(--wmg-primary, #1976d2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wmg-primary) 12%, transparent);
}

.wmg-fld__input-wrap input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: 0;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    min-width: 0;
}

.wmg-fld__input-wrap input::placeholder { color: #9ca3af; }

.wmg-fld__suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/* --- Alert --- */
.wmg-alert {
    margin: 0 0 20px 0;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
}

/* --- Remember --- */
.wmg-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 22px 0;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.wmg-remember input[type=checkbox] {
    accent-color: var(--wmg-primary, #1976d2);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* --- Submit button --- */
.wmg-btn {
    width: 100%;
    background: var(--wmg-accent, var(--wmg-primary, #1976d2));
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter .15s, transform .05s, box-shadow .15s;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, .08),
        0 0 0 1px color-mix(in srgb, var(--wmg-accent, var(--wmg-primary)) 80%, black) inset;
}

.wmg-btn:hover {
    filter: brightness(1.06);
    box-shadow:
        0 4px 12px color-mix(in srgb, var(--wmg-accent, var(--wmg-primary)) 25%, transparent),
        0 0 0 1px color-mix(in srgb, var(--wmg-accent, var(--wmg-primary)) 80%, black) inset;
}

.wmg-btn:active { transform: translateY(1px); }

.wmg-btn:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--wmg-primary, #1976d2) 28%, transparent),
        0 1px 2px rgba(0, 0, 0, .08);
}

/* --- Divider --- */
.wmg-split__divider {
    display: flex;
    align-items: center;
    margin: 28px 0 20px;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.wmg-split__divider::before,
.wmg-split__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.wmg-split__divider span { padding: 0 12px; }

/* --- Admin link --- */
.wmg-admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
}

.wmg-admin-link svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: color .15s;
}

.wmg-admin-link:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.wmg-admin-link:hover svg { color: var(--wmg-primary, #1976d2); }

/* --- Form footer (custom HTML) --- */
.wmg-split__form-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

.wmg-split__form-footer a {
    color: var(--wmg-primary, #1976d2);
    text-decoration: none;
}

.wmg-split__form-footer a:hover { text-decoration: underline; }

/* --- Powered by --- */
.wmg-powered {
    position: absolute;
    bottom: 16px;
    right: 20px;
    color: #d1d5db;
    font-size: 11px;
    letter-spacing: .02em;
    pointer-events: none;
}

/* ============ Responsive ============ */
@media (max-width: 920px) {
    .wmg-split { flex-direction: column; }

    .wmg-split__brand {
        flex: 0 0 auto;
        min-height: 280px;
    }

    .wmg-split__brand-inner {
        min-height: 280px;
        padding: 32px 28px;
        gap: 24px;
    }

    .wmg-split__hero-title { font-size: 28px; }
    .wmg-split__hero-sub   { font-size: 14px; }
    .wmg-split__brand-foot { display: none; } /* mobilde alta destek alanı yer kaplamasın */

    .wmg-split__form-side {
        flex: 1;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .wmg-split__brand { min-height: 220px; }
    .wmg-split__brand-inner { min-height: 220px; padding: 24px 22px; }
    .wmg-split__hero-title { font-size: 24px; margin-bottom: 10px; }
    .wmg-split__title { font-size: 24px; }
}