/* ============================================
   SOLARBEE ONEHUB - SPLIT SCREEN LOGIN
   Modern Enterprise CRM/ERP Design
   ============================================ */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --primary-blue: #0056b3;
    --primary-blue-light: #0077cc;
    --primary-blue-dark: #003d82;
    --accent-orange: #ff8c00;
    --accent-orange-light: #ffa500;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #0077cc 50%, #00a8ff 100%);
    --gradient-accent: linear-gradient(135deg, #ff8c00 0%, #ffa500 50%, #ffb732 100%);
    --gradient-mixed: linear-gradient(90deg, #0056b3 0%, #ff8c00 100%);
    --gradient-bg: linear-gradient(135deg, #0056b3 0%, #003d82 50%, #ff8c00 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SPLIT CONTAINER
   ============================================ */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ============================================
   LEFT PANEL - BRAND SHOWCASE
   ============================================ */
.left-panel {
    flex: 1;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.brand-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
}

.brand-logo {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.brand-logo img {
    height: 80px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.brand-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.brand-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   3D SHAPES
   ============================================ */
.shape-3d {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(2px);
}

.sphere-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 140, 0, 0.4));
    top: 10%;
    left: 10%;
    animation: float3D 20s ease-in-out infinite;
}

.cube-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(0, 119, 204, 0.4));
    border-radius: 20px;
    top: 60%;
    right: 15%;
    animation: rotate3D 25s linear infinite;
}

.pyramid-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 180px solid rgba(255, 140, 0, 0.2);
    bottom: 20%;
    left: 20%;
    animation: float3D 18s ease-in-out infinite reverse;
}

.sphere-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(0, 86, 179, 0.3));
    top: 30%;
    right: 25%;
    animation: float3D 15s ease-in-out infinite 2s;
}

.cube-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3), rgba(255, 165, 0, 0.2));
    border-radius: 15px;
    bottom: 35%;
    right: 10%;
    animation: rotate3D 20s linear infinite reverse;
}

/* ============================================
   PARTICLES
   ============================================ */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 40%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(3) { left: 60%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 80%; animation-delay: 1s; animation-duration: 11s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 13s; }

/* ============================================
   RIGHT PANEL - LOGIN AREA
   ============================================ */
.right-panel {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   PORTAL TABS
   ============================================ */
.portal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: var(--gray-50);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.875rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-base);
    font-size: 0.75rem;
    font-weight: 500;
}

.tab-btn i {
    font-size: 1.25rem;
    transition: transform var(--transition-base);
}

.tab-btn:hover {
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary-blue);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active i {
    transform: scale(1.1);
}

/* ============================================
   LOGIN FORM AREA
   ============================================ */
.login-form-area {
    animation: fadeInUp 0.5s ease-out;
}

.customer-options {
    animation: fadeInUp 0.5s ease-out;
}

.welcome-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.select-wrapper,
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-icon,
.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 2;
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--transition-base);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all var(--transition-base);
}

.password-toggle:hover {
    color: var(--primary-blue);
    background: rgba(0, 86, 179, 0.05);
}

/* ============================================
   FORM OPTIONS
   ============================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray-700);
}

.remember-me input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.forgot-link:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-mixed);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    transition: transform var(--transition-base);
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* ============================================
   FORM FOOTER
   ============================================ */
.form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.form-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   CUSTOMER CARDS
   ============================================ */
.customer-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.customer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-800);
    transition: all var(--transition-base);
}

.customer-card:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 86, 179, 0.05);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.customer-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.customer-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.customer-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ============================================
   ALERT
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert i {
    font-size: 1.125rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .left-panel {
        flex: 0.8;
    }
    
    .brand-tagline {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    
    .left-panel {
        flex: none;
        min-height: 35vh;
        padding: 2rem 1.5rem;
    }
    
    .brand-logo img {
        height: 50px;
    }
    
    .brand-tagline {
        font-size: 1.75rem;
    }
    
    .brand-subtitle {
        font-size: 0.875rem;
    }
    
    .shape-3d {
        display: none;
    }
    
    .right-panel {
        flex: 1;
        padding: 1.5rem;
    }
    
    .portal-tabs {
        gap: 0.25rem;
        padding: 0.375rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.375rem;
        font-size: 0.625rem;
    }
    
    .tab-btn i {
        font-size: 1rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .customer-cards {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .left-panel {
        min-height: 30vh;
        padding: 1.5rem 1rem;
    }
    
    .right-panel {
        padding: 1rem;
    }
    
    .login-wrapper {
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .left-panel {
        display: none;
    }
    
    .right-panel {
        padding: 1rem;
    }
    
    .portal-tabs {
        margin-bottom: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .welcome-subtitle {
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}
