/* themes/brand_panel.css
 * Sol panel solid primary_color + dekoratif geometrik şekiller.
 * Sağ panel temiz floating-label form.
 * Görsel kullanılmaz — marka rengi baskın.
 */

*, *::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-bp-wrap {
    display: flex;
    min-height: 100vh;
}

/* ============ SOL: Solid marka paneli ============ */
.wmg-bp-brand {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--wmg-primary) 92%, white) 0%,
        var(--wmg-primary, #1976d2) 50%,
        color-mix(in srgb, var(--wmg-primary) 70%, black) 100%);
}

/* --- Dekorlar (geometric shapes) --- */
.wmg-bp-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.wmg-bp-deco--circle1 {
    /* Sol üst köşeden dışarı taşan büyük yarım daire */
    top: -180px;
    left: -160px;
    width: 480px;
    height: 480px;
}

.wmg-bp-deco--circle2 {
    /* Sağ alt köşede outline çember */
    bottom: -120px;
    right: -100px;
    width: 360px;
    height: 360px;
}

.wmg-bp-deco--dots {
    /* Orta sağda nokta pattern (dikdörtgen alan) */
    top: 50%;
    right: 8%;
    width: 140px;
    height: 140px;
    transform: translateY(-30%) rotate(15deg);
    opacity: .8;
}

/* --- İçerik (z-index ile dekorların üstünde) --- */
.wmg-bp-brand-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 100vh;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

/* --- Head: logo + brand name --- */
.wmg-bp-brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wmg-bp-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    padding: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wmg-bp-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    letter-spacing: -.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.wmg-bp-brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #fff;
}

/* --- Hero: BÜYÜK welcome text --- */
.wmg-bp-hero {
    max-width: 460px;
}

.wmg-bp-hero-title {
    margin: 0 0 18px 0;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.wmg-bp-hero-sub {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
    max-width: 400px;
}

.wmg-bp-domain {
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    padding: 2px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* --- Foot: destek --- */
.wmg-bp-brand-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.wmg-bp-foot-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: color .15s;
}

.wmg-bp-foot-link svg {
    width: 16px;
    height: 16px;
    opacity: .8;
    flex-shrink: 0;
}

a.wmg-bp-foot-link:hover {
    color: #fff;
}

/* ============ SAĞ: Form alanı ============ */
.wmg-bp-form-side {
    flex: 1 1 50%;
    min-width: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
    position: relative;
}

.wmg-bp-form-inner {
    width: 100%;
    max-width: 360px;
}

/* --- Eyebrow + title --- */
.wmg-bp-form-head { margin-bottom: 36px; }

.wmg-bp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--wmg-primary, #1976d2);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 8px;
}

.wmg-bp-form-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #111827;
    line-height: 1.15;
}

/* --- Alert --- */
.wmg-bp-alert {
    margin: 0 0 22px 0;
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
}

/* ============ Floating-label form ============ */
.wmg-bp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wmg-bp-fld {
    --bp-fill: #f3f4f6;             /* default: belirgin gri fill */
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d1d5db;    /* önceki #e5e7eb çok açıktı */
    border-radius: 10px;
    background: var(--bp-fill);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.wmg-bp-fld:hover {
    --bp-fill: #fff;
    border-color: #9ca3af;
}

.wmg-bp-fld:focus-within {
    --bp-fill: #fff;
    border-color: var(--wmg-primary, #1976d2);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--wmg-primary) 16%, transparent);
}

.wmg-bp-fld input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: 0;
    padding: 20px 14px 8px;     /* üstte label için yer */
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    min-width: 0;
}

.wmg-bp-floating {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;             /* önceki #9ca3af çok soluk */
    pointer-events: none;
    transition: top .15s ease, transform .15s ease,
                font-size .15s ease, color .15s ease, font-weight .15s ease;
    background: transparent;
    padding: 0 4px;
    z-index: 1;
}

/* Label yukarı kayma: input focus veya doluyken */
.wmg-bp-fld input:focus ~ .wmg-bp-floating,
.wmg-bp-fld input:not(:placeholder-shown) ~ .wmg-bp-floating {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--wmg-primary, #1976d2);
    background: var(--bp-fill);  /* parent fill'i takip eder (gri/beyaz) */
}

.wmg-bp-suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #e5e7eb;
    border-left: 1.5px solid #d1d5db;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/* --- Remember --- */
.wmg-bp-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.wmg-bp-remember input[type=checkbox] {
    accent-color: var(--wmg-primary, #1976d2);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* --- Submit button --- */
.wmg-bp-btn {
    margin-top: 8px;
    width: 100%;
    background: var(--wmg-primary, #1976d2);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .005em;
    transition: filter .15s, transform .04s, box-shadow .2s;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .18) inset,
        0 4px 14px color-mix(in srgb, var(--wmg-primary) 25%, transparent);
}

.wmg-bp-btn:hover {
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .22) inset,
        0 6px 20px color-mix(in srgb, var(--wmg-primary) 32%, transparent);
}

.wmg-bp-btn:active { transform: translateY(1px); }

.wmg-bp-btn:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--wmg-primary) 30%, transparent),
        0 4px 14px color-mix(in srgb, var(--wmg-primary) 25%, transparent);
}

/* --- Admin link --- */
.wmg-bp-admin-link {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 1px dashed #d1d5db;
    transition: color .15s, border-color .15s;
}

.wmg-bp-admin-link svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    transition: color .15s;
}

.wmg-bp-admin-link:hover {
    color: var(--wmg-primary, #1976d2);
    border-bottom-color: var(--wmg-primary, #1976d2);
}

.wmg-bp-admin-link:hover svg { color: var(--wmg-primary, #1976d2); }

/* --- Custom footer --- */
.wmg-bp-foot-custom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.wmg-bp-foot-custom a {
    color: var(--wmg-primary, #1976d2);
    text-decoration: none;
}

.wmg-bp-foot-custom a:hover { text-decoration: underline; }

/* --- Powered --- */
.wmg-powered {
    position: absolute;
    bottom: 18px;
    right: 22px;
    color: #d1d5db;
    font-size: 11px;
    letter-spacing: .02em;
    pointer-events: none;
}

/* ============ Responsive ============ */
@media (max-width: 920px) {
    .wmg-bp-wrap { flex-direction: column; }

    .wmg-bp-brand {
        flex: 0 0 auto;
        min-height: 320px;
    }

    .wmg-bp-brand-inner {
        min-height: 320px;
        padding: 36px 32px;
        gap: 28px;
    }

    .wmg-bp-hero-title { font-size: 34px; }
    .wmg-bp-hero-sub   { font-size: 14px; }
    .wmg-bp-brand-foot { display: none; }

    .wmg-bp-deco--circle1 { width: 320px; height: 320px; top: -120px; left: -100px; }
    .wmg-bp-deco--circle2 { width: 220px; height: 220px; bottom: -70px; right: -60px; }
    .wmg-bp-deco--dots    { display: none; }

    .wmg-bp-form-side {
        flex: 1;
        padding: 36px 24px;
        align-items: flex-start;
    }

    .wmg-bp-form-inner { margin-top: 12px; }
}

@media (max-width: 480px) {
    .wmg-bp-brand { min-height: 240px; }
    .wmg-bp-brand-inner { min-height: 240px; padding: 26px 22px; }
    .wmg-bp-hero-title { font-size: 28px; }
    .wmg-bp-form-title { font-size: 26px; }
    .wmg-bp-form-head { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .wmg-bp-fld, .wmg-bp-floating, .wmg-bp-btn, .wmg-bp-admin-link {
        transition: none;
    }
}