 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #2563eb 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow-x: hidden;
            padding: 16px;
        }

        /* Geometric background patterns */
        .geometric-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0.1;
        }

        .geometric-shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: floatGeometric 8s ease-in-out infinite;
        }

        @keyframes floatGeometric {
            0%, 100% { transform: translateY(0px) scale(1); }
            50% { transform: translateY(-30px) scale(1.1); }
        }

        /* Main container */
        .login-wrapper {
            position: relative;
            z-index: 2;
            display: flex;
            max-width: 1200px;
            width: 100%;
            min-height: 600px;
            background: white;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            animation: slideUp 0.8s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Left side - Brand/Welcome */
        .login-brand {
            flex: 1;
            background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 40px;
            position: relative;
            overflow: hidden;
        }

        .login-brand::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .brand-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
        }

        .brand-logo {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 30px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .brand-logo i {
            font-size: 2.5rem;
            color: white;
        }

        .brand-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            background: linear-gradient(45deg, #ffffff, #e0e7ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .brand-subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 10px;
            font-weight: 400;
        }

        .brand-description {
            font-size: 0.95rem;
            opacity: 0.7;
            max-width: 280px;
            line-height: 1.6;
        }

        /* Right side - Login form */
        .login-form-section {
            flex: 1;
            padding: 60px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: white;
        }

        .form-header {
            margin-bottom: 40px;
        }

        .form-header h2 {
            font-size: 2rem;
            color: #1f2937;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .form-header p {
            color: #6b7280;
            font-size: 1rem;
            font-weight: 400;
        }

        /* Form styles */
        .login-form {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .form-group {
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #374151;
            font-weight: 500;
            font-size: 0.875rem;
        }

        .form-group input {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 1rem;
            background: #f9fafb;
            transition: all 0.3s ease;
            outline: none;
            font-weight: 400;
        }

        .form-group input:focus {
            border-color: #4f46e5;
            background: white;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
            transform: translateY(-2px);
        }

        .form-group input::placeholder {
            color: #9ca3af;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 8px 0;
            flex-wrap: wrap;
            gap: 12px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .checkbox-group input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: #4f46e5;
            cursor: pointer;
            border-radius: 4px;
        }

        .checkbox-group label {
            font-size: 0.875rem;
            color: #6b7280;
            cursor: pointer;
            margin-bottom: 0;
        }

        .forgot-password {
            color: #4f46e5;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .forgot-password:hover {
            color: #3730a3;
        }

        .login-button {
            background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
            color: white;
            border: none;
            padding: 16px 24px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            margin-top: 8px;
        }

        .login-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.4);
        }

        .login-button:active {
            transform: translateY(0);
        }

        .login-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .button-spinner {
            display: none;
            margin-right: 12px;
        }

        .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Messages */
        .message {
            padding: 16px 20px;
            border-radius: 12px;
            margin-bottom: 24px;
            font-size: 0.875rem;
            font-weight: 500;
            display: none;
            animation: messageSlide 0.4s ease-out;
            border: 1px solid transparent;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateY(-15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.error {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #dc2626;
            border-color: #fca5a5;
        }

        .message.success {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            color: #059669;
            border-color: #6ee7b7;
        }

        .message.info {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            color: #2563eb;
            border-color: #93c5fd;
        }

        /* Footer */
        .login-footer {
            margin-top: 40px;
            padding-top: 24px;
            border-top: 1px solid #e5e7eb;
            text-align: center;
        }

        .login-footer p {
            color: #9ca3af;
            font-size: 0.875rem;
        }

        /* Tablet styles (768px to 1024px) */
        @media (min-width: 768px) and (max-width: 1024px) {
            .login-wrapper {
                max-width: 800px;
                min-height: 550px;
            }

            .login-brand {
                padding: 40px 30px;
            }

            .brand-title {
                font-size: 2.2rem;
            }

            .brand-subtitle {
                font-size: 1rem;
            }

            .login-form-section {
                padding: 40px 30px;
            }

            .form-header h2 {
                font-size: 1.75rem;
            }
        }

        /* Mobile styles (up to 768px) */
        @media (max-width: 768px) {
            body {
                padding: 12px;
            }

            .login-wrapper {
                flex-direction: column;
                max-width: 450px;
                min-height: auto;
                border-radius: 20px;
            }

            .login-brand {
                padding: 40px 30px;
                min-height: 280px;
            }

            .brand-logo {
                width: 70px;
                height: 70px;
                margin-bottom: 20px;
            }

            .brand-logo i {
                font-size: 2rem;
            }

            .brand-title {
                font-size: 2rem;
                margin-bottom: 12px;
            }

            .brand-subtitle {
                font-size: 1rem;
                margin-bottom: 8px;
            }

            .brand-description {
                font-size: 0.875rem;
                max-width: 250px;
            }

            .login-form-section {
                padding: 40px 30px;
            }

            .form-header {
                margin-bottom: 30px;
            }

            .form-header h2 {
                font-size: 1.75rem;
            }

            .form-header p {
                font-size: 0.95rem;
            }

            .login-form {
                gap: 20px;
            }

            .form-group input {
                padding: 14px 18px;
                font-size: 1rem;
            }

            .form-options {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }

            .login-button {
                padding: 14px 20px;
                font-size: 1rem;
            }

            .login-footer {
                margin-top: 30px;
                padding-top: 20px;
            }
        }

        /* Small mobile styles (up to 480px) */
        @media (max-width: 480px) {
            body {
                padding: 8px;
            }

            .login-wrapper {
                max-width: 100%;
                border-radius: 16px;
            }

            .login-brand {
                padding: 30px 20px;
                min-height: 240px;
            }

            .brand-logo {
                width: 60px;
                height: 60px;
                margin-bottom: 16px;
            }

            .brand-logo i {
                font-size: 1.75rem;
            }

            .brand-title {
                font-size: 1.75rem;
                margin-bottom: 10px;
            }

            .brand-subtitle {
                font-size: 0.95rem;
                margin-bottom: 6px;
            }

            .brand-description {
                font-size: 0.8rem;
                max-width: 200px;
            }

            .login-form-section {
                padding: 30px 20px;
            }

            .form-header {
                margin-bottom: 24px;
            }

            .form-header h2 {
                font-size: 1.5rem;
            }

            .form-header p {
                font-size: 0.9rem;
            }

            .login-form {
                gap: 18px;
            }

            .form-group input {
                padding: 12px 16px;
                font-size: 0.95rem;
            }

            .form-group label {
                font-size: 0.8rem;
            }

            .checkbox-group label {
                font-size: 0.8rem;
            }

            .forgot-password {
                font-size: 0.8rem;
            }

            .login-button {
                padding: 12px 18px;
                font-size: 0.95rem;
            }

            .login-footer {
                margin-top: 24px;
                padding-top: 16px;
            }

            .login-footer p {
                font-size: 0.8rem;
            }
        }

        /* Large mobile landscape (up to 640px height) */
        @media (max-height: 640px) and (orientation: landscape) {
            .login-wrapper {
                min-height: auto;
            }

            .login-brand {
                min-height: 200px;
                padding: 30px 25px;
            }

            .brand-title {
                font-size: 1.5rem;
            }

            .brand-subtitle {
                font-size: 0.9rem;
            }

            .brand-description {
                font-size: 0.8rem;
            }

            .login-form-section {
                padding: 30px 25px;
            }

            .form-header {
                margin-bottom: 20px;
            }

            .form-header h2 {
                font-size: 1.5rem;
            }

            .login-form {
                gap: 16px;
            }

            .login-footer {
                margin-top: 20px;
                padding-top: 16px;
            }
        }

        /* Animation effects */
        .shake {
            animation: shake 0.6s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-8px); }
            75% { transform: translateX(8px); }
        }

        .fade-in {
            animation: fadeIn 0.4s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* Focus states */
        .form-group input:focus + .input-icon {
            color: #4f46e5;
        }

        /* Touch device optimizations */
        @media (pointer: coarse) {
            .login-button {
                padding: 16px 24px;
                min-height: 48px;
            }

            .form-group input {
                min-height: 48px;
            }

            .checkbox-group input[type="checkbox"] {
                width: 24px;
                height: 24px;
            }
        }

        /* High DPI display optimizations */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .login-wrapper {
                box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
            }

            .brand-logo {
                backdrop-filter: blur(15px);
            }
        }
/* Focus states */
.form-group input:focus + .input-icon {
    color: #4f46e5;
}

.form-group:focus-within {
    transform: translateY(-2px);
}

/* Hover effects */
.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}