﻿/* Partner Login — Modern 2024 Design */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #0f0f1a;
    overflow-x: hidden;
}

/* Animated Background */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.bg-shape-1 {
    width: 500px; height: 500px;
    background: #667eea;
    top: -10%; left: -10%;
    animation: floatShape 12s ease-in-out infinite alternate;
}

.bg-shape-2 {
    width: 400px; height: 400px;
    background: #764ba2;
    bottom: -10%; right: -10%;
    animation: floatShape 10s ease-in-out infinite alternate-reverse;
}

.bg-shape-3 {
    width: 300px; height: 300px;
    background: #f093fb;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: floatShape 14s ease-in-out infinite alternate;
}

.bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(102,126,234,0.12) 0%, transparent 60%);
}

@keyframes floatShape {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -20px) scale(1.05); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Layout */
.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* Left Panel — Illustration */
.login-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: transparent;
}

.illustration-content {
    max-width: 480px;
    text-align: center;
}

/* Floating cards */
.floating-cards {
    position: relative;
    height: 200px;
    margin-bottom: 40px;
}

.float-card {
    position: absolute;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.float-card i {
    font-size: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.float-card-1 { top: 0; left: 10%; animation: float1 6s ease-in-out infinite; }
.float-card-1 i { background: linear-gradient(135deg, #667eea, #764ba2); }

.float-card-2 { top: 30%; right: 5%; animation: float2 7s ease-in-out infinite; }
.float-card-2 i { background: linear-gradient(135deg, #11998e, #38ef7d); }

.float-card-3 { bottom: 0; left: 25%; animation: float3 8s ease-in-out infinite; }
.float-card-3 i { background: linear-gradient(135deg, #f093fb, #f5576c); }

@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.illustration-text h1 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.illustration-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 8px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
}

/* Right Panel — Form */
.login-form-panel {
    flex: 0 0 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255,255,255,0.06);
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
}

/* Brand */
.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.brand-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 36px rgba(102,126,234,0.4);
}

.brand-icon i {
    font-size: 28px;
    color: white;
}

.login-brand h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.login-brand p {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
}

/* Alerts */
.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: slideDown 0.35s ease-out;
}

.login-alert-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.2);
    color: #fca5a5;
}

.login-alert-success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.2);
    color: #86efac;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Fields */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.field-input-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255,255,255,0.3);
    pointer-events: none;
    transition: color 0.3s;
}

.field-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.field-input-wrap input::placeholder {
    color: rgba(255,255,255,0.25);
}

.field-input-wrap input:focus {
    border-color: #667eea;
    background: rgba(102,126,234,0.08);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.field-input-wrap input:focus + .field-icon,
.field-input-wrap input:focus ~ .field-icon {
    color: #667eea;
}

.field-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: color 0.3s;
}

.field-toggle:hover { color: #667eea; }

/* Remember + Forgot row */
.form-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input { display: none; }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: white;
}

.checkbox-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.forgot-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover { color: #8b9cf7; }

/* Submit Button */
.login-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.login-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.login-submit:hover::before { opacity: 1; }

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(102,126,234,0.35);
}

.login-submit:active { transform: translateY(0); }

.btn-text, .btn-loader { position: relative; z-index: 1; }

/* Footer */
.login-footer-text {
    margin-top: 32px;
    text-align: center;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.15);
    color: #86efac;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

/* Responsive */
@media (max-width: 991px) {
    .login-wrapper { flex-direction: column; }
    .login-illustration { display: none; }
    .login-form-panel {
        flex: 1;
        border-left: none;
        padding: 40px 24px;
    }
}

@media (max-width: 576px) {
    .login-form-panel { padding: 30px 20px; }
    .login-form-inner { max-width: 100%; }
    .login-brand h2 { font-size: 24px; }
    .form-field-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
