

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    position: relative;
    max-width: calc(100% - 400px);
}

.hero-content {
    max-width: 800px;
    animation: fadeInLeft 0.8s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    line-height: var(--line-height-base);
    font-weight: 400;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition-base);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--white);
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ================================================================
   LOGIN SECTION
   ================================================================ */
.login-section {
    position: relative;
    flex-shrink: 0;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: var(--z-modal);
    animation: fadeInRight 0.8s ease forwards;
    margin: 2rem;
    align-self: flex-start;
}

.login-container {
    width: 100%;
}

.host-badge {
    position: absolute;
    top: -12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

/* ================================================================
   LOGIN BRANDING
   ================================================================ */
.login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-brand-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin: 0 auto 0.75rem;
}



.login-brand-logo img {
    width: 48px;
    height: 48px;
    transition: transform 0.4s ease;
}

.login-brand-logo:hover img {
    transform: rotate(15deg) scale(1.2);
}

.login-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.login-brand-tagline {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.login-header p {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* ================================================================
   FORM COMPONENTS
   ================================================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
    font-size: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: var(--gray-50);
    font-family: inherit;
    line-height: 1.2;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background: var(--white);
}

.form-input::placeholder {
    color: var(--gray-400);
}

/* ================================================================
   BUTTON COMPONENTS
   ================================================================ */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-base);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.625rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: 0.75rem;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

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

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

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    z-index: var(--z-footer);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 1200px) {
    .login-section {
        width: 320px;
        margin: 1.5rem;
    }
    
    .container {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        min-height: auto;
        align-items: stretch;
        padding: 1rem;
    }

    .login-section {
        width: 100%;
        max-width: 400px;
        margin: 2rem auto 0;
        max-height: none;
        align-self: center;
    }
    
    .hero-section {
        padding: 3rem 2rem;
        text-align: center;
        min-height: auto;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .login-section {
        padding: 1.5rem;
        margin: 1.5rem auto 0;
        width: calc(100% - 3rem);
        max-width: 360px;
    }
    
    .footer {
        position: relative;
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }
    
    .login-section {
        margin: 1rem auto 0;
        width: calc(100% - 2rem);
        padding: 1.25rem;
        max-width: none;
    }
    
    .login-brand-name {
        font-size: 1.25rem;
    }
    
    .login-header h2 {
        font-size: 1.1rem;
    }

    .features-grid {
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }
}

/* ================================================================
   REDUCED MOTION PREFERENCES
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}