﻿
/* ===== Xpoda Premium Login — Light Theme ===== */
:root {
    /* Light palette using brand color #3f2747 and its tints */
    --brand: #3f2747; /* primary brand */
    --brand-600: #452a4e;
    --brand-500: #3f2747;
    --brand-400: #6a4e73;
    --brand-300: #9b7ea3;
    --brand-200: #c8b6cf;
    --brand-100: #eadff0;
    --ink: #1f2630; /* primary text on light */
    --ink-weak: #68707c; /* secondary text */
    --surface: #ffffff; /* cards */
    --surface-2: #fafbff; /* page */
    --line: rgba(0,0,0,.08); /* subtle borders */
    --shadow-1: 0 12px 30px rgba(33, 41, 56, .08);
    --shadow-2: 0 8px 24px rgba(33,41,56,.08), 0 0 0 1px rgba(0,0,0,.04) inset;
    --radius-2xl: 18px;
    --radius-xl: 14px;
    --radius-lg: 12px;
    --focus-ring: 0 0 0 3px rgba(157, 130, 168, .30), 0 0 0 1px var(--brand-400) inset;
    --input-h: 46px;
    --speed: .25s;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--ink);
    background: radial-gradient(1100px 600px at 15% 0%, var(--brand-100), transparent 60%), radial-gradient(900px 600px at 85% 10%, rgba(63,39,71,.06), transparent 60%), linear-gradient(180deg, var(--surface-2) 0%, #fff 60%);
    overflow: hidden;
}

.login-wrap {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    padding: 28px;
}

/* ===== Left / Showcase (light) ===== */
.left {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    background: linear-gradient(180deg, rgba(63,39,71,.04), rgba(63,39,71,0)), var(--surface);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

    .left .brand {
        position: absolute;
        top: 22px;
        left: 60px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--brand-600);
        text-decoration: none;
        user-select: none;
        margin-bottom: 50px;
    }

.brand .logo {
    width: 200px
}

    .brand .logo svg {
        width: 22px;
        height: 22px;
        fill: white
    }

.brand .name {
    font-weight: 700;
    letter-spacing: .2px
}

.dotgrid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(63,39,71,.18) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: .18;
    mask-image: linear-gradient(180deg, black, transparent);
}

.hero {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 5%;
}

    .hero h1 {
        font-size: clamp(30px, 3.6vw, 46px);
        margin: 0 0 12px;
        letter-spacing: .3px;
        color: var(--brand-600)
    }

    .hero p {
        margin: 0;
        color: var(--ink-weak);
        max-width: 640px;
        line-height: 1.5
    }

    .hero .badges {
        margin-top: 26px;
        display: flex;
        gap: 12px;
        flex-wrap: wrap
    }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--brand-600);
    box-shadow: 0 6px 14px rgba(0,0,0,.04);
}

/* ===== Right / Card ===== */
.right {
    display: grid;
    place-items: center;
}

.card {
    width: min(440px, 92vw);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

    .card .title {
        font-size: 22px;
        margin: 22px 0 4px;
        color: var(--brand-600)
    }

    .card .sub {
        margin: 0 0 18px;
        color: var(--ink-weak);
        font-size: 13.5px
    }

/* Language selector */
.lang {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-weak);
}

     select {
        height: 34px;
        border-radius: 10px;
        background: #fff;
        border: 1px solid var(--line);
        color: var(--ink);
        padding: 0 10px;
        outline: none;
    }

         select:focus {
            box-shadow: var(--focus-ring);
        }

/* Inputs */
.field {
    position: relative;
    margin-top: 16px;
}

    .field input {
        width: 100%;
        height: var(--input-h);
        border-radius: 12px;
        background: #fff;
        border: 1px solid var(--line);
        color: var(--ink);
        padding: 0 44px 0 14px;
        outline: none;
        transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
    }

        .field input::placeholder {
            color: transparent;
            user-select: none
        }

    .field label {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 6px;
        color: var(--ink-weak);
        font-size: 13px;
        pointer-events: none;
        transition: all var(--speed);
        background: linear-gradient(180deg, transparent 45%, #fff 46%);
    }

    .field input:focus {
        border-color: var(--brand-400);
        box-shadow: var(--focus-ring);
        background: #fff
    }

        .field input:not(:placeholder-shown) + label,
        .field input:focus + label {
            top: -5px;
            transform: translateY(-50%);
            font-size: 11px;
            color: var(--brand-600);
            opacity: .95;
        }

    .field .icon {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        cursor: pointer;
        color: var(--ink-weak);
        transition: background var(--speed), color var(--speed);
        border: none;
    }

        .field .icon:hover {
            background: rgba(63,39,71,.06);
            color: var(--brand-600);
        }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

    .row .remember {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: var(--ink-weak);
    }

        .row .remember input {
            width: 18px;
            height: 18px;
            accent-color: var(--brand-500);
        }

    .row .forgot {
        color: var(--ink-weak);
        text-decoration: none;
        font-size: 13px;
    }

        .row .forgot:hover {
            color: var(--brand-600)
        }

.btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(63,39,71,.20);
    background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
    color: white;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .06s ease, box-shadow var(--speed), filter var(--speed);
    box-shadow: 0 10px 30px rgba(63,39,71,.18), inset 0 0 0 1px rgba(255,255,255,.10);
}

    .btn:hover {
        filter: saturate(1.06)
    }

    .btn:active {
        transform: translateY(1px)
    }

.hint {
    display: none;
    margin-top: 8px;
    font-size: 12.5px;
    color: #b3261e
}

    .hint.show {
        display: block
    }

.foot {
    margin-top: 18px;
    color: var(--ink-weak);
    font-size: 12.5px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

    .foot a {
        color: var(--ink-weak);
        text-decoration: none
    }

        .foot a:hover {
            color: var(--brand-600)
        }

/* ===== Responsive ===== */
@media (max-width: 1050px) {
    .login-wrap {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px
    }

    .left {
        height: 260px
    }

    .hero {
        top: 28%;
    }
}

.field .icon {
    width: auto;
    height: auto;
    padding: 4px;
    background: transparent !important;
    border-radius: 0;
    font-size: 16px;
    color: var(--ink-weak);
}

    .field .icon:hover {
        color: var(--brand-600);
    }

.row .remember {
    gap: 6px;
    line-height: 1.4;
}

    .row .remember input {
        transform: scale(1.1); /* biraz büyüt */
    }

.btn {
    margin-top: 20px;
}

.lang select {
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid var(--line);
    background: #fafafa;
}

#pane-email {
    padding: 20px;
}

.right {
    align-items: start !important; /* place-items:center etkisini bozar */
    padding-top: min(8vh, 64px); /* kart için sabit üst boşluk */
}

/* 2) Kart yüksekliğini sabitle: küçük metin değişimleri kartı oynatmasın */
.card {
    min-height: 400px; /* ihtiyaca göre 480–560px aralığında tutabilirsin */
}

/* 3) CapsLock/hata ipucunun yerini rezerve et: görünür/gizli olurken layout değişmesin */
.hint {
    min-height: 18px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease;
}

    .hint.show {
        visibility: visible;
        opacity: 1;
    }

/* === 1) Sol panelde kalan sabit yükseklik kısıtını kaldır === */
.left {
    height: auto !important;
    min-height: 100% !important;
    position: relative; /* SVG'yi tabana sabitlemek için gerekli */
    padding-bottom: 0 !important; /* SVG alt boşluksuz otursun */
}

/* === 2) SVG alt kısımda tam genişlik (yanlarda boşluk yok) === */
.hero-art {
    position: absolute !important;
    left: 0;
    right: 0;
    height: auto;
    margin: 0;
    pointer-events: none;
}

/* === 3) Mobilde sayfa kaydırılsın (body'deki overflow:hidden'ı iptal et) === */
body {
    overflow: auto !important;
}



/* === 4) Çok küçük ekranda sol panel tamamen gizlensin === */
@media (max-width: 900px) {
    .login-wrap {
        grid-template-columns: 1fr !important;
    }

    .left {
        display: none !important;
    }

    .right {
        padding-top: 24px !important;
    }
}

/* === 5) Password tıklayınca kartın kıpırdamasını önle === */
.right {
    align-items: start !important;
}
/* yeniden ortalanmayı engelle */
.card {
    min-height: 420px !important;
}
/* ufak içerik değişimlerinde yükseklik sabit kalsın */
.hint {
    min-height: 18px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s;
}

    .hint.show {
        visibility: visible;
        opacity: 1;
    }
/* CapsLock/hata görünürken layout sabit kalsın */
.hero-art {
    position: absolute;
    right: 6%;
    height: auto;
    pointer-events: none;
}
/* illustration position (bottom) */
.hero-art {
    position: static;
    margin-top: auto;
    align-self: flex-end;
    height: auto;
    pointer-events: none;
}

.left .brand, .left .hero, .left .hero-art {
    position: relative;
    z-index: 1;
}

.hero-art .conns {
    opacity: .10;
}

.hero-art .dots {
    opacity: .2;
}

.left {
    position: relative;
    background: #fff; /* client açık tema */
    border-right: 1px solid rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}

.left-inner {
    padding: 32px 28px 16px;
}

.logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg,#9b7ea3,#3f2747);
    box-shadow: 0 8px 22px rgba(63,39,71,.18);
}

.left-title {
    margin: 14px 0 6px;
    font-weight: 800;
    color: #3f2747;
}

.left-tag {
    margin: 0 0 12px;
    color: #6b6070;
}

.left-bullets {
    margin: 0;
    padding-left: 18px;
    color: #6b7480;
}

    .left-bullets li {
        margin: 6px 0;
    }

/* SVG dekor: altta tam yayılsın, sağ/sol boşluk bırakmasın */
.left-hero {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 38%; /* yüksekliği istersen 30–45% arası oynat */
    display: block;
}

/* Küçük ekranlarda sol panel gizlensin (mevcut login davranışınla uyumluysa) */
@media (max-width: 800px) {
    .left {
        display: none;
    }
}

:root {
    --brand: #3f2747;
    --brand-100: #f4eff7;
    --brand-200: #e9e0ee;
}

.left-client {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(900px 480px at 70% -10%, var(--brand-100), transparent 60%), linear-gradient(180deg, #fff, #fff);
    border-right: 1px solid rgba(0,0,0,.06);
    /* yüksekliği kısıtlayan eski kuralları ezer */
    height: auto !important;
    min-height: 100%;
}

    .left-client .left-content {
        padding: 28px 26px 10px;
    }

    .left-client .brand-chip {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-weight: 800;
        color: #fff;
        background: linear-gradient(135deg, #9b7ea3, var(--brand));
        box-shadow: 0 10px 24px rgba(63,39,71,.22);
    }

    .left-client .left-title {
        margin: 14px 0 6px;
        font-weight: 800;
        color: var(--brand);
    }

    .left-client .left-sub {
        margin: 0 0 10px;
        color: #6b6070;
    }

    .left-client .left-points {
        margin: 0;
        padding-left: 18px;
        color: #6b7480;
    }

        .left-client .left-points li {
            margin: 6px 0;
        }

/* SVG altta tam yayılsın; boşluk bırakmasın */
.left-hero-client {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* küçük ekranlarda istersen gizle */
@media (max-width: 800px) {
    .left-client {
        display: none;
    }
}

/* --- Premium corner badge (no HTML change) --- */
.left {
    position: relative;
}
    /* güvence */

    .left[data-badge] {
        --b-h: 34px; /* yükseklik */
        --b-pad: 14px; /* yatay padding */
        --b-fg: #3f2747; /* yazı/dot rengi (Client varsayılan) */
        --b-glow: 0 12px 28px rgba(63,39,71,.22);
        --b-fill: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.58));
        --b-border: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.28));
    }

        .left[data-badge]::after {
            content: attr(data-badge);
            position: absolute;
            top: 16px;
            right: 16px;
            height: var(--b-h);
            line-height: var(--b-h);
            padding: 0 calc(var(--b-pad)) 0 calc(var(--b-pad) + 18px); /* solda dot için yer */
            display: inline-block;
            white-space: nowrap;
            font-weight: 800;
            font-size: 12.5px;
            color: var(--b-fg);
            border-radius: 999px;
            border: 1px solid transparent;
            backdrop-filter: blur(8px);
            box-shadow: var(--b-glow);
            /* 1) solda mini dot  2) iç dolgu  3) gradient border */
            background: radial-gradient(circle at 16px 50%, var(--b-fg) 0 3px, transparent 3.5px), var(--b-fill), var(--b-border);
            background-clip: padding-box, padding-box, border-box;
            background-origin: padding-box, padding-box, border-box;
            /* üst parlama (gloss) */
            -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.82) 55%, rgba(0,0,0,.65));
            mask-image: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.82) 55%, rgba(0,0,0,.65));
        }

    /* Studio varyantı: koyu gradient + beyaz yazı, daha güçlü glow */
    .left[data-badge="Client"] {
        --b-fg: #ffffff;
        --b-fill: linear-gradient(135deg, #6a4e73, #3f2747);
        --b-border: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.15));
        --b-glow: 0 14px 34px rgba(63,39,71,.35);
    }

    .left[data-badge="Studio"]::after {
        text-shadow: 0 1px 0 rgba(0,0,0,.18);
    }

/* Küçük ekran ayarı (isteğe bağlı) */
@media (max-width: 800px) {
    .left[data-badge]::after {
        top: 12px;
        right: 12px;
    }
}

#pane-email.returning .field:first-of-type {
    display: none !important;
}

/* Returning user bandı (JS enjekte eder) */
#pane-email .returning-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(15,23,32,.10);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
}

#pane-email .rb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg,#9b7ea3,#3f2747);
    box-shadow: 0 6px 16px rgba(63,39,71,.20);
}

#pane-email .rb-name {
    font-weight: 700;
    color: #0f1720;
    line-height: 1.1
}

#pane-email .rb-email {
    font-size: 12px;
    color: #667085
}

#pane-email .rb-switch {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #3f2747;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 8px;
}

    #pane-email .rb-switch:hover {
        background: #f4eff7
    }

/* Sign in butonu: premium hover / active / focus */
#pane-email .btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #e9e0ee;
    background: linear-gradient(180deg,#4f3658,#3f2747);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(63,39,71,.20);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    #pane-email .btn:hover {
        filter: brightness(1.03);
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(63,39,71,.26);
    }

    #pane-email .btn:active {
        transform: translateY(0);
        filter: brightness(.98);
        box-shadow: 0 8px 18px rgba(63,39,71,.18);
    }

    #pane-email .btn:focus-visible {
        outline: 3px solid #d9cde0;
        outline-offset: 2px;
    }

    #pane-email .btn[disabled] {
        opacity: .6;
        cursor: not-allowed;
    }

#pane-email .field input:focus + label,
#pane-email .field input:not(:placeholder-shown) + label,
#pane-email .field.is-filled > label,
#pane-email .field input:-webkit-autofill + label {
    /* sizdeki transform / top / font-size ne ise onu kullanın */
}

#PageErrorMessage {
    color: #e75b38;
    list-style: none;
    float: left;
    margin: 10px;
}

.sms-field, .esign-field {
    display: none;
}
#SmsTime {
    position: absolute;
    right: 20px;
    top: 10px;
}
#Certs {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.btn-waiting {
    position: relative;
    pointer-events: none; /* tekrar tıklamayı engelle */
    opacity: .9; /* hafif soluklaştır */
}

    .btn-waiting::after {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 8px;
        border: 2px solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        vertical-align: -2px;
        animation: btnspin .8s linear infinite;
    }

@keyframes btnspin {
    to {
        transform: rotate(360deg);
    }
}