/* ============================================
   B SHARP HSEQ - LOGIN STYLES CSS
   Version: 1.0
   Modern, Responsive, Production-Ready
   ============================================ */

/* ============================================
   CSS RESET & BASE CONFIGURATION
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================
   CSS VARIABLES (DESIGN TOKENS)
   ============================================ */

:root {
    /* Primary Colors */
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --primary-cyan: #06b6d4;
    --primary-indigo: #667eea;
    --primary-violet: #764ba2;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-button: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    
    /* Background Colors */
    --bg-body: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #4facfe 100%);
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-light: rgba(30, 41, 59, 0.5);
    --bg-input: #334155;
    --bg-input-hover: #475569;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #1e293b;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Border & Shadows */
    --border-color: #334155;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-lighter: rgba(255, 255, 255, 0.05);
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
    
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 60px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 32px;
    --font-size-5xl: 36px;
    --font-size-6xl: 42px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-slowest: 0.6s ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 1000;
    --z-overlay: 9999;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    background-attachment: fixed;
    background-size: 400% 400%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    position: relative;
    overflow-x: hidden;
    color: var(--text-primary);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes patternMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

/* ============================================
   MAIN LOGIN CONTAINER
   ============================================ */

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px var(--border-light),
        var(--shadow-glow-blue);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
    animation: containerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   LOGIN CARD (LEFT SIDE)
   ============================================ */

.login-card {
    padding: var(--space-10) var(--space-9);
    display: flex;
    flex-direction: column;
    background: var(--bg-card-light);
    position: relative;
}

/* Decorative Elements */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
}

/* ============================================
   LOGO SECTION
   ============================================ */

.logo-section {
    text-align: center;
    margin-bottom: var(--space-8);
    animation: logoFadeIn 0.8s ease 0.2s backwards;
}

@keyframes logoFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.logo-badge {
     width: 140px;              
    height: 145px;           
    border-radius: 50%;       
    background-color: #ffffff; 
    display: flex;             
    align-items: center;
    justify-content: center;
    overflow: hidden;          
    border: 3px solid #2c3e50; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
    flex-shrink: 0;   
 
}
  .header-logo {
    width: 130%;             
    height: 100%;             
    object-fit: contain;       
    padding: 5px;             
}
   


@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Glow Effect Behind Logo */
.logo-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.logo-badge i {
    font-size: 40px;
    color: white;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.logo-section h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe, #00f2fe, #4facfe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    letter-spacing: 1px;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.tagline {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================
   LOGIN FORM
   ============================================ */

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    letter-spacing: 0.3px;
    margin-left: var(--space-1);
}

/* ============================================
   INPUT WRAPPER & FIELDS
   ============================================ */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    transition: color var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.input-wrapper:focus-within i {
    color: var(--primary-blue);
}

.input-wrapper input {
    width: 100%;
    padding: 14px var(--space-4) 14px 48px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: 400;
    font-family: var(--font-family);
    transition: all var(--transition-base);
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--bg-input-hover);
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

/* ============================================
   PASSWORD TOGGLE BUTTON
   ============================================ */

.toggle-password {
    position: absolute;
    right: var(--space-4);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
}

.toggle-password:active {
    transform: scale(0.95);
}

.toggle-password i {
    position: static;
    pointer-events: none;
}

/* ============================================
   FORM OPTIONS (REMEMBER ME & FORGOT PASSWORD)
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: calc(var(--space-2) * -1) 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: color var(--transition-base);
    user-select: none;
}

.remember-me:hover {
    color: var(--text-primary);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    border-radius: var(--radius-sm);
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    padding-bottom: 2px;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-base);
}

.forgot-link:hover {
    color: #60a5fa;
}

.forgot-link:hover::after {
    width: 100%;
}

/* ============================================
   PORTAL SELECTION
   ============================================ */

.portal-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin: var(--space-2) 0;
}

.portal-option {
    cursor: pointer;
}

.portal-option input[type="radio"] {
    display: none;
}

.portal-card {
    padding: var(--space-5);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

/* Gradient Overlay */
.portal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portal-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.portal-card:hover::before {
    opacity: 1;
}

.portal-card i {
    font-size: 32px;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    z-index: 1;
}

.portal-card span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    z-index: 1;
}

/* Selected State */
.portal-option input[type="radio"]:checked + .portal-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--primary-blue);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.4),
        0 0 0 4px rgba(59, 130, 246, 0.1);
}

.portal-option input[type="radio"]:checked + .portal-card::before {
    opacity: 1;
}

.portal-option input[type="radio"]:checked + .portal-card i {
    color: var(--primary-blue);
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

/* ============================================
   LOGIN BUTTON
   ============================================ */

.login-btn {
    width: 100%;
    padding: var(--space-4);
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

/* Hover Gradient Overlay */
.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.login-btn span,
.login-btn i {
    position: relative;
    z-index: 1;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.5),
        var(--shadow-glow-blue);
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.login-btn i {
    transition: transform var(--transition-base);
}

.login-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-2) 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider span {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    white-space: nowrap;
    font-weight: 500;
}

/* ============================================
   SOCIAL LOGIN BUTTONS
   ============================================ */

.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.social-btn {
    padding: 14px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.social-btn i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.social-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover i {
    transform: scale(1.1);
}

/* Brand-specific Hover Colors */
.social-btn.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.social-btn.microsoft:hover {
    border-color: #00a4ef;
    color: #00a4ef;
}

.social-btn.apple:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* ============================================
   LOGIN FOOTER
   ============================================ */

.login-footer {
    text-align: center;
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.login-footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ============================================
   INFO PANEL (RIGHT SIDE)
   ============================================ */

.info-panel {
    background: var(--gradient-primary);
    padding: var(--space-10) var(--space-9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Effects */
.info-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotatePulse 15s ease-in-out infinite;
}

@keyframes rotatePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        opacity: 0.8; 
    }
}

.info-panel::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotatePulse 20s ease-in-out infinite reverse;
}

.info-content {
    position: relative;
    z-index: 1;
}

.info-content h2 {
    font-size: var(--font-size-6xl);
    color: white;
    margin-bottom: var(--space-5);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-content p {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   FEATURE ITEMS
   ============================================ */

.features {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: white;
    font-size: var(--font-size-lg);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: var(--font-size-3xl);
    color: var(--success);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    min-width: 24px;
    flex-shrink: 0;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-5);
    z-index: var(--z-overlay);
}

.loading-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 500;
    animation: textPulse 2s ease-in-out infinite;
}