/**
 * Partner Login — SafeInventa
 * Split-Screen Layout (Left: Form, Right: Rich Marketing Panel)
 */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
    background: #ffffff;
    color: #0f172a;
}

/* =========================================================
   SPLIT-SCREEN MAIN LAYOUT
   ========================================================= */
.pl-split-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

@media (min-width: 900px) {
    .pl-split-layout {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }
}

/* =========================================================
   LEFT PANEL: FORM CONTAINER
   ========================================================= */
.pl-panel-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 1.75rem 1.25rem;
    position: relative;
    overflow-y: auto;
}

@media (min-width: 900px) {
    .pl-panel-form {
        width: 480px;
        flex-shrink: 0;
        padding: 2.75rem 2.25rem;
        height: 100vh;
        overflow-y: auto;
    }
}

@media (min-width: 1200px) {
    .pl-panel-form {
        width: 540px;
        padding: 3.5rem 3rem;
    }
}

.pl-form-inner {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Header bar (Logo + Lang select) */
.pl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.pl-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.pl-logo-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s;
}

.pl-logo-link:hover .pl-logo-box {
    transform: scale(1.05);
}

.pl-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.pl-partner-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    margin-left: 4px;
}

/* Language selector */
.pl-lang-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pl-lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 6px 28px 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    outline: none;
    font-family: inherit;
}

.pl-lang-select:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pl-lang-chevron {
    position: absolute;
    right: 10px;
    pointer-events: none;
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Mobile promo box (only visible < 900px) */
.pl-mobile-promo {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 60%, #7c3aed 100%);
    border-radius: 16px;
    padding: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
}

@media (min-width: 900px) {
    .pl-mobile-promo {
        display: none;
    }
}

.pl-mobile-promo h2 {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.pl-mobile-promo p {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(238, 242, 255, 0.9);
    margin: 0 0 12px 0;
}

.pl-mobile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pl-mobile-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.6875rem;
    font-weight: 600;
}

/* Tabs: Login / Signup */
.pl-tabs-container {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.75rem;
    gap: 4px;
}

.pl-tab-item {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.15s;
}

.pl-tab-item.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pl-tab-item:hover:not(.active) {
    color: #0f172a;
}

/* Titles */
.pl-title-wrap {
    margin-bottom: 1.5rem;
}

.pl-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.025em;
}

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

/* Alerts */
.pl-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pl-alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
}

.pl-alert-success {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #16a34a;
}

/* Forms */
.pl-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pl-field-group {
    display: flex;
    flex-direction: column;
}

.pl-field-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.pl-input-container {
    position: relative;
    width: 100%;
}

.pl-input-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.pl-input-field {
    width: 100%;
    height: 46px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0 14px 0 42px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: all 0.15s;
}

.pl-input-field:focus {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.pl-input-field::placeholder {
    color: #94a3b8;
}

/* Plain input (no icon) */
.pl-input-field.pl-no-icon {
    padding-left: 14px;
}

/* 2FA input */
.pl-input-2fa {
    width: 100%;
    height: 56px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
    font-size: 1.75rem;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: #0f172a;
    outline: none;
    transition: all 0.15s;
}

.pl-input-2fa:focus {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Select */
.pl-select-field {
    width: 100%;
    height: 46px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0 34px 0 14px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.15s;
}

.pl-select-field:focus {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Radio categories (Courtier / Syndic) */
.pl-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 420px) {
    .pl-radio-grid {
        grid-template-columns: 1fr;
    }
}

.pl-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s;
}

.pl-radio-card:hover {
    border-color: #4f46e5;
    background: #faf5ff;
}

.pl-radio-card input[type="radio"] {
    margin-top: 3px;
    accent-color: #4f46e5;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pl-radio-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.pl-radio-desc {
    font-size: 0.6875rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
    line-height: 1.35;
}

/* Grid 2 columns for signup */
.pl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 420px) {
    .pl-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Signup free banner */
.pl-signup-banner {
    padding: 12px 14px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
}

.pl-signup-banner-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 3px;
}

.pl-signup-banner p {
    margin: 0;
    font-size: 0.75rem;
    color: #5b21b6;
    line-height: 1.45;
}

/* Buttons */
.pl-btn-submit {
    width: 100%;
    height: 48px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.pl-btn-submit:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -5px rgba(79, 70, 229, 0.45);
}

.pl-btn-submit:active {
    transform: scale(0.99);
}

.pl-btn-secondary {
    width: 100%;
    height: 48px;
    background: #ffffff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.pl-btn-secondary:hover {
    background: #f5f3ff;
    border-color: #a5b4fc;
}

.pl-link-cancel {
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: underline;
}

.pl-reset-email-info {
    font-size: 0.8125rem;
    color: #4f46e5;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pl-label-center {
    text-align: center;
    display: block;
}

/* Forgot password link */
.pl-forgot-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    margin-bottom: 4px;
}

.pl-forgot-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}

.pl-forgot-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Links and footer */
.pl-link-center {
    text-align: center;
    margin-top: 0.75rem;
}

.pl-link-center a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.pl-link-center a:hover {
    text-decoration: underline;
}

.pl-divider-row {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
}

.pl-divider-line {
    flex: 1;
    border-top: 1px solid #e2e8f0;
}

.pl-divider-text {
    padding: 0 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pl-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.pl-security-footer i {
    color: #10b981;
}

.pl-back-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    text-align: center;
}

.pl-back-footer a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.pl-back-footer a:hover {
    color: #4f46e5;
}

/* =========================================================
   RIGHT PANEL: RICH MARKETING SIDEBAR
   ========================================================= */
.pl-panel-marketing {
    display: none;
}

@media (min-width: 900px) {
    .pl-panel-marketing {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        position: relative;
        overflow-y: auto;
        background: linear-gradient(135deg, #3730a3 0%, #4338ca 30%, #6366f1 65%, #7c3aed 100%);
        color: #ffffff;
        padding: 3.5rem 3.5rem;
        height: 100vh;
    }
}

@media (min-width: 1280px) {
    .pl-panel-marketing {
        padding: 4.5rem 5rem;
    }
}

/* Ambient glow orbs */
.pl-glow-1 {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
}

.pl-glow-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(168, 85, 247, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
}

.pl-glow-3 {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
}

.pl-mkt-content {
    position: relative;
    z-index: 10;
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}

/* Marketing Badge */
.pl-mkt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pl-mkt-badge i {
    color: #c7d2fe;
}

/* Headline and Subtitle */
.pl-mkt-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

@media (min-width: 1280px) {
    .pl-mkt-title {
        font-size: 2.75rem;
    }
}

.pl-mkt-desc {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(238, 242, 255, 0.92);
    margin: 0 0 1.75rem 0;
    font-weight: 400;
}

/* Stats 3-column bar */
.pl-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1.75rem;
}

.pl-stat-col {
    text-align: center;
}

.pl-stat-col.mid {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.pl-stat-val {
    font-size: 1.625rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pl-stat-lbl {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(224, 231, 255, 0.85);
    margin-top: 4px;
}

/* Feature cards */
.pl-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.pl-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.pl-feature-card:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-1px);
}

.pl-feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.pl-feat-icon.indigo {
    background: rgba(129, 140, 248, 0.25);
    color: #c7d2fe;
}

.pl-feat-icon.emerald {
    background: rgba(52, 211, 153, 0.25);
    color: #a7f3d0;
}

.pl-feat-icon.amber {
    background: rgba(251, 191, 36, 0.25);
    color: #fde68a;
}

.pl-feat-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.pl-feat-desc {
    font-size: 0.75rem;
    color: rgba(224, 231, 255, 0.85);
    margin: 0;
    line-height: 1.4;
}

/* Testimonial */
.pl-testi-box {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.pl-testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pl-testi-quote {
    font-size: 0.8125rem;
    font-style: italic;
    color: rgba(238, 242, 255, 0.92);
    line-height: 1.45;
    margin: 0 0 5px 0;
}

.pl-testi-author {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pl-testi-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
}

.pl-testi-role {
    font-size: 0.75rem;
    color: rgba(224, 231, 255, 0.8);
}

.pl-testi-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.6875rem;
    margin-left: 2px;
}

/* Trust badges */
.pl-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pl-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    color: rgba(224, 231, 255, 0.9);
}

.pl-trust-badge i {
    color: #34d399;
}
