/* ============================================
   Login Page Styles
   ============================================ */

.login-page {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0891b2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Login Container */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side - Branding */
.login-left {
    background: linear-gradient(135deg, #0ea5e9 0%, #0891b2 100%);
    padding: 40px 32px;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Branding */
.login-branding {
    position: relative;
    z-index: 2;
}

/* Illustration */
.login-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.login-illustration svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    animation: illustrationFloat 8s ease-in-out infinite;
}

@keyframes illustrationFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

.logo-circle svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.login-branding h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.5;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 32px 0 24px 0;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.35);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-card p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Right Side - Form */
.login-right {
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 32px;
    text-align: center;
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
}

/* Login Form */
.login-form {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Button */
.btn-login {
    width: 100%;
    margin-top: var(--spacing-lg);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-xl) 0;
    color: var(--color-gray-400);
    font-size: var(--font-size-sm);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-gray-200);
}

.divider span {
    padding: 0 var(--spacing-md);
}

/* Demo Button */
.btn-demo {
    width: 100%;
}

/* Form Footer */
.form-footer {
    margin-top: var(--spacing-xl);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.form-footer a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-base);
}

.form-footer a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        height: auto;
        max-height: none;
        margin: 20px;
    }

    .login-left {
        padding: 32px 24px;
        min-height: 300px;
    }

    .features-grid,
    .stats-row {
        display: none;
    }

    .login-branding h1 {
        font-size: 24px;
    }
    
    .logo-circle {
        width: 48px;
        height: 48px;
    }
    
    .logo-circle svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .login-page {
        padding: 0;
        background: var(--color-white);
    }

    .login-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        height: 100vh;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 32px 24px;
    }
}

/* Icon Fixes */
.input-icon {
    width: 20px;
    height: 20px;
}

.alert svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 8px;
}
