/* Partner panel — Sinica violet (pink only on login hero left) */
.partner-ui .partner-sidebar {
    background: linear-gradient(180deg, #1e1b4b 0%, #3d1f5c 100%);
}

.partner-ui .partner-sidebar .menu-item-active {
    background: rgba(124, 58, 237, 0.2);
    color: #ddd6fe;
}

.partner-ui .partner-sidebar .menu-item-active .menu-item-text {
    color: #f5f3ff;
}

.partner-ui .partner-badge,
.partner-ui .partner-accent {
    background: #7c3aed !important;
}

.partner-ui .partner-accent-soft {
    background: #ede9fe;
    color: #6d28d9;
}

/* ── Partner login — Sinica corporate split layout ── */
.partner-login {
    overflow-x: hidden;
}

.partner-auth {
    --sinica-violet: #7c3aed;
    --sinica-violet-dark: #6d28d9;
    --sinica-violet-deep: #5b21b6;
    --sinica-pink: #fe006e;
    --sinica-text: #f5f5f5;
    --sinica-text-muted: rgba(245, 245, 245, 0.72);
    --sinica-ink: #1e1e1e;

    display: flex;
    min-height: 100dvh;
    background: #f8fafc;
}

.partner-auth__hero {
    position: relative;
    display: none;
    width: 46%;
    max-width: 36rem;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(165deg, #0a0e14 0%, #0f141c 48%, #1a0f28 100%);
    color: var(--sinica-text);
}

.partner-auth__hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(72px);
}

.partner-auth__hero-glow--one {
    width: 19rem;
    height: 19rem;
    top: -5rem;
    right: -4rem;
    background: rgba(254, 0, 110, 0.22);
}

.partner-auth__hero-glow--two {
    width: 21rem;
    height: 21rem;
    bottom: -6rem;
    left: -5rem;
    background: rgba(232, 185, 35, 0.14);
}

.partner-auth__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.partner-auth__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 3rem 2.75rem;
}

.partner-auth__hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partner-auth__hero-logo {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 0.9rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-auth__hero-logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(254, 0, 110, 0.24), rgba(254, 0, 110, 0.08));
    border: 1px solid rgba(254, 0, 110, 0.28);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sinica-pink);
}

.partner-auth__hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.92);
}

.partner-auth__hero-copy {
    margin-top: 3.25rem;
}

.partner-auth__hero-title {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}

.partner-auth__hero-text {
    margin: 0;
    max-width: 23rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--sinica-text-muted);
}

.partner-auth__features {
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.partner-auth__feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0;
    border: 0;
    background: none;
}

.partner-auth__feature strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.2rem;
}

.partner-auth__feature span {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(245, 245, 245, 0.62);
}

.partner-auth__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex-shrink: 0;
    margin-top: 0.1rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sinica-pink);
    font-size: 1.45rem;
    line-height: 1;
}

.partner-auth__hero-footer {
    margin: 2.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
}

.partner-auth__main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

.partner-auth__main-bg {
    position: absolute;
    inset: 0;
    background: #f8fafc;
    pointer-events: none;
}

.partner-auth__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 27.5rem;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.partner-auth__card-head {
    margin-bottom: 1.5rem;
}

.partner-auth__card-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--sinica-ink);
    line-height: 1.15;
}

.partner-auth__card-subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}

.partner-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b91c1c;
}

.partner-auth__alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #fee2e2;
    font-size: 0.75rem;
}

.partner-auth__form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.partner-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.partner-auth__label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #334155;
}

.partner-auth__input-wrap {
    display: flex;
    align-items: center;
    min-height: 3.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s;
}

.partner-auth__input-wrap:hover {
    border-color: #cbd5e1;
}

.partner-auth__input-wrap:focus-within {
    border-color: var(--sinica-violet);
}

.partner-auth__input-wrap:focus-within .partner-auth__input-icon {
    color: var(--sinica-violet);
}

.partner-auth__input-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    font-size: 1rem;
    line-height: 1;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.15s;
}

.partner-auth__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 3.1rem;
    max-height: none;
    padding: 0 0.95rem 0 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 500;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.partner-auth__input:hover,
.partner-auth__input:focus,
.partner-auth__input:focus-visible,
.partner-auth__input:active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.partner-auth__select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.25rem;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237c3aed' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
}

.partner-auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 9999px;
    background: var(--sinica-violet);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 0.15s, opacity 0.15s;
}

.partner-auth__submit:hover {
    background: var(--sinica-violet-dark);
}

.partner-auth__submit:active {
    opacity: 0.88;
}

.partner-login.admin-ui .partner-auth__submit,
.partner-login.admin-ui .partner-auth__submit:focus,
.partner-login.admin-ui .partner-auth__submit:focus-visible,
.partner-login.admin-ui .partner-auth__submit:active {
    border: 0 !important;
    background: var(--sinica-violet) !important;
    background-color: var(--sinica-violet) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

.partner-login.admin-ui .partner-auth__submit:hover {
    background: var(--sinica-violet-dark) !important;
    background-color: var(--sinica-violet-dark) !important;
}

.partner-auth__support {
    margin: 1.35rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.8125rem;
    color: #94a3b8;
}

@media (min-width: 900px) {
    .partner-auth__hero {
        display: block;
    }
}

@media (max-width: 899px) {
    .partner-auth {
        flex-direction: column;
        background: linear-gradient(180deg, #0a0e14 0%, #1a0f28 28%, #fafafa 28%);
    }

    .partner-auth__hero {
        display: block;
        width: 100%;
        max-width: none;
        min-height: auto;
    }

    .partner-auth__hero-inner {
        min-height: auto;
        padding: 1.75rem 1.5rem 1.5rem;
        gap: 1.25rem;
    }

    .partner-auth__hero-copy {
        margin-top: 1.25rem;
    }

    .partner-auth__hero-title {
        font-size: 1.45rem;
    }

    .partner-auth__features {
        display: none;
    }

    .partner-auth__hero-footer {
        display: none;
    }

    .partner-auth__main {
        align-items: flex-start;
        padding: 0 1rem 1.5rem;
        margin-top: -0.5rem;
    }

    .partner-auth__main-bg {
        background: transparent;
    }
}

.partner-stat-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 18px 20px;
}

.partner-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 6px;
}

.partner-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.partner-ui .ta-btn:not(.ta-btn-secondary) {
    background: #7c3aed;
    border-color: #7c3aed;
}

.partner-ui .ta-btn:not(.ta-btn-secondary):hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.partner-ui .menu-group-title {
    color: rgba(255, 255, 255, 0.45);
}

.partner-ui .menu-item-inactive {
    color: rgba(255, 255, 255, 0.72);
}

.partner-ui .menu-item-inactive:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
